Skip to content

Commit

Permalink
grammar includes __loc
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvanc committed Apr 5, 2016
1 parent 806172a commit 41a02a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pony.g
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ nextatom
| 'object' cap? ('is' type)? members 'end'
| 'lambda' cap? ID? typeparams? ('(' | LPAREN_NEW) params? ')' lambdacaptures? (':' type)? '?'? '=>' rawseq 'end'
| '@' (ID | STRING) typeargs? ('(' | LPAREN_NEW) positional? named? ')' '?'?
| '__loc'
;

atom
Expand All @@ -200,6 +201,7 @@ atom
| 'object' cap? ('is' type)? members 'end'
| 'lambda' cap? ID? typeparams? ('(' | LPAREN_NEW) params? ')' lambdacaptures? (':' type)? '?'? '=>' rawseq 'end'
| '@' (ID | STRING) typeargs? ('(' | LPAREN_NEW) positional? named? ')' '?'?
| '__loc'
;

tuple
Expand Down

0 comments on commit 41a02a5

Please sign in to comment.