1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package node
- func (impl Array) Term() {}
- type Array struct {
- Node `part:"array"`
- Items [] Expr `list_more:"exprlist" item:"expr"`
- }
- func (impl Tuple) Term() {}
- type Tuple struct {
- Node `part:"tuple"`
- Elements [] Expr `list_more:"exprlist" item:"expr"`
- }
- func (impl Bundle) Term() {}
- type Bundle struct {
- Node `part:"bundle"`
- Update MaybeUpdate `part_opt:"update"`
- Values [] FieldValue `list_more:"pairlist" item:"pair"`
- }
- type FieldValue struct {
- Node `part:"pair"`
- Key Identifier `part:"name"`
- Value MaybeExpr `part_opt:"expr"`
- }
- type MaybeUpdate interface { MaybeUpdate() }
- func (impl Update) MaybeUpdate() {}
- type Update struct {
- Node `part:"update"`
- Base Expr `part:"expr"`
- }
- func (impl Get) Term() {}
- type Get struct {
- Node `part:"get"`
- Base Expr `part:"expr"`
- Path [] Member `list_more:"" item:"member"`
- }
- type Member struct {
- Node `part:"member"`
- Name Identifier `part:"name"`
- }
|