Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hugo/content/docs/grammar-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ SimpleExpression:
```
Unfortunately, *left-factoring* does not come without consequences and can lead to the generation of unwanted nodes. It is possible to "clean" the tree by using *tree-rewriting actions*.
```langium
interface Expression {}
Addition returns Expression:
SimpleExpression ({Addition.left=current} '+' right=SimpleExpression)*;
SimpleExpression ({infer Addition.left=current} '+' right=SimpleExpression)*;
SimpleExpression:
'(' Addition ')' | value=INT;
Expand Down

0 comments on commit 0115ff8

Please sign in to comment.