Skip to content
Snippets Groups Projects
Commit 35b7bbff authored by Johannes Mey's avatar Johannes Mey
Browse files

no whitespace/comment required between rules

parent edf93dea
Branches
Tags
No related merge requests found
GrammarFile goal GrammarFile goal
= comment_list.c grammar_file.f {: f.getDeclarationList().insertChild(new EmptyDeclaration(c), 0); return f; :} = comment_list.c grammar_file.f {: f.getDeclarationList().insertChild(new EmptyDeclaration(c), 0); return f; :}
| grammar_file
; ;
GrammarFile grammar_file GrammarFile grammar_file
...@@ -16,8 +15,8 @@ Declaration declaration ...@@ -16,8 +15,8 @@ Declaration declaration
// this method would be create by the JAstAddParser from a usage of // this method would be create by the JAstAddParser from a usage of
// 'comment+' in a rule, but only for the standard list class 'List'. // 'comment+' in a rule, but only for the standard list class 'List'.
JastAddList comment_list JastAddList comment_list
= comment.n {: return new JastAddList().add(n); :} = comment.c comment_list.l {: l.insertChild(c, 0); return l; :}
| comment_list.l comment.n {: return l.add(n); :} | /* epsilon */ {: return new JastAddList(); :}
; ;
Comment comment Comment comment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment