| 1 |
DSL EXPRESSION: |
| 2 |
j = 2; for (i = 0; i < NR; i += 1) { $i += i } |
| 3 |
|
| 4 |
|
| 5 |
AST: |
| 6 |
"block" [tt:block] [nt:StatementBlock] |
| 7 |
"=" [tt:equals] [nt:Assignment] |
| 8 |
"j" [tt:non_sigil_name] [nt:LocalVariable] |
| 9 |
"2" [tt:int_literal] [nt:int_literal] |
| 10 |
"for" [tt:kw_for] [nt:TripleForLoop] |
| 11 |
"block" [tt:block] [nt:StatementBlock] |
| 12 |
"=" [tt:equals] [nt:Assignment] |
| 13 |
"i" [tt:non_sigil_name] [nt:LocalVariable] |
| 14 |
"0" [tt:int_literal] [nt:int_literal] |
| 15 |
"block" [tt:block] [nt:StatementBlock] |
| 16 |
"<" [tt:op_lt] [nt:BareBoolean] |
| 17 |
"<" [tt:op_lt] [nt:Operator] |
| 18 |
"i" [tt:non_sigil_name] [nt:LocalVariable] |
| 19 |
"NR" [tt:ctx_NR] [nt:ctx_NR] |
| 20 |
"block" [tt:block] [nt:StatementBlock] |
| 21 |
"+=" [tt:op_plus_equals] [nt:CompoundAssignment] |
| 22 |
"i" [tt:non_sigil_name] [nt:LocalVariable] |
| 23 |
"+=" [tt:op_plus_equals] [nt:op_plus_equals] |
| 24 |
"1" [tt:int_literal] [nt:int_literal] |
| 25 |
"block" [tt:block] [nt:StatementBlockInBraces] |
| 26 |
"block" [tt:block] [nt:StatementBlock] |
| 27 |
"+=" [tt:op_plus_equals] [nt:CompoundAssignment] |
| 28 |
"$i" [tt:field_name] [nt:DirectFieldValue] |
| 29 |
"+=" [tt:op_plus_equals] [nt:op_plus_equals] |
| 30 |
"i" [tt:non_sigil_name] [nt:LocalVariable] |
| 31 |
|
| 32 |
a=pan,b=pan,i=1,x=0.34679014,y=0.72680286 |
| 33 |
a=eks,b=pan,i=3,x=0.75867996,y=0.52215111 |
| 34 |
a=wye,b=wye,i=6,x=0.20460331,y=0.33831853 |
| 35 |
a=eks,b=wye,i=10,x=0.38139939,y=0.13418874 |