Skip to content

Commit

Permalink
both examples work
Browse files Browse the repository at this point in the history
  • Loading branch information
teverett committed Jul 1, 2020
1 parent 18fdeb5 commit fb04dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clu/clu.g4
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ equate
;

own_var
: 'own' (decl | (idn ':' type_spec ':=' expression) | (decl_list ':=' invocation))
: 'own' decl
| 'own' (idn ':' type_spec ':=' expression)
| 'own' (decl_list ':=' invocation)
;

type_spec
Expand Down Expand Up @@ -240,7 +242,7 @@ primary
| idn (constant_list)?
| primary '.' name
| primary expression
| primary '(' expression_list ')'
| primary '(' expression_list? ')'
| type_spec '$' field_list
| type_spec '$' '[' ((expression ':')? expression_list) ']'
| type_spec '$' (name constant_list?)
Expand Down
File renamed without changes.

0 comments on commit fb04dd3

Please sign in to comment.