Commit 35b7bbff authored by Johannes Mey's avatar Johannes Mey
Browse files

no whitespace/comment required between rules

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