commit
a8f0fb8616
|
@ -226,7 +226,7 @@ YYYY/MM/DD, github id, Full name, email
|
||||||
2019/03/13, base698, Justin Thomas, justin.thomas1@gmail.com
|
2019/03/13, base698, Justin Thomas, justin.thomas1@gmail.com
|
||||||
2019/03/18, carlodri, Carlo Dri, carlo.dri@gmail.com
|
2019/03/18, carlodri, Carlo Dri, carlo.dri@gmail.com
|
||||||
2019/05/02, askingalot, Andy Collins, askingalot@gmail.com
|
2019/05/02, askingalot, Andy Collins, askingalot@gmail.com
|
||||||
2019/07/08, abhijithneilabraham,Abhijith Neil Abraham, abhijithneilabrahampk@gmail.com
|
2019/05/13, mapio, Massimo Santini, massimo.santini@gmail.com
|
||||||
2019/07/11, olowo726, Olof Wolgast, olof@baah.se
|
2019/07/11, olowo726, Olof Wolgast, olof@baah.se
|
||||||
2019/07/16, abhijithneilabraham, Abhijith Neil Abraham, abhijithneilabrahampk@gmail.com
|
2019/07/16, abhijithneilabraham, Abhijith Neil Abraham, abhijithneilabrahampk@gmail.com
|
||||||
2019/07/26, Braavos96, Eric Hettiaratchi, erichettiaratchi@gmail.com
|
2019/07/26, Braavos96, Eric Hettiaratchi, erichettiaratchi@gmail.com
|
||||||
|
|
|
@ -84,7 +84,7 @@ Using a rule label looks like this:
|
||||||
returnStat : 'return' e=expr {System.out.println("matched "+e.text);} ;
|
returnStat : 'return' e=expr {System.out.println("matched "+e.text);} ;
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also use `$ followed by the name of the attribute to access the value associated with the currently executing rule. For example, `$start` is the starting token of the current rule.
|
You can also use `$` followed by the name of the attribute to access the value associated with the currently executing rule. For example, `$start` is the starting token of the current rule.
|
||||||
|
|
||||||
```
|
```
|
||||||
returnStat : 'return' expr {System.out.println("first token "+$start.getText());} ;
|
returnStat : 'return' expr {System.out.println("first token "+$start.getText());} ;
|
||||||
|
|
Loading…
Reference in New Issue