Changeset 111 for branches/generator/pascal.grm
- Timestamp:
- Aug 9, 2017, 12:09:47 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/pascal.grm
r110 r111 6 6 <RuleItems> 7 7 <RuleItem> 8 <Name>begin</Name> 8 <Type>0</Type> 9 <Terminal>begin</Terminal> 9 10 </RuleItem> 10 11 <RuleItem> 11 <Name>command</Name> 12 <Type>1</Type> 13 <NonTerminal>Command</NonTerminal> 12 14 </RuleItem> 13 15 <RuleItem> 14 <Name>end</Name> 16 <Type>0</Type> 17 <Terminal>end</Terminal> 15 18 </RuleItem> 16 19 </RuleItems> … … 18 21 <Rule> 19 22 <Name>IfThenElse</Name> 20 <RuleItems/> 23 <RuleItems> 24 <RuleItem> 25 <Type>0</Type> 26 <Terminal>if</Terminal> 27 </RuleItem> 28 <RuleItem> 29 <Type>1</Type> 30 <NonTerminal>Expression</NonTerminal> 31 </RuleItem> 32 <RuleItem> 33 <Type>0</Type> 34 <Terminal>then</Terminal> 35 </RuleItem> 36 <RuleItem> 37 <Type>1</Type> 38 <NonTerminal>Command</NonTerminal> 39 </RuleItem> 40 <RuleItem> 41 <Type>0</Type> 42 <Terminal>else</Terminal> 43 </RuleItem> 44 <RuleItem> 45 <Type>1</Type> 46 <NonTerminal>Command</NonTerminal> 47 </RuleItem> 48 <RuleItem> 49 <Type>0</Type> 50 <Terminal>end</Terminal> 51 </RuleItem> 52 </RuleItems> 21 53 </Rule> 22 54 <Rule> 23 55 <Name>WhileDo</Name> 24 <RuleItems/> 56 <RuleItems> 57 <RuleItem> 58 <Type>0</Type> 59 <Terminal>while</Terminal> 60 </RuleItem> 61 <RuleItem> 62 <Type>1</Type> 63 <NonTerminal>Expression</NonTerminal> 64 </RuleItem> 65 <RuleItem> 66 <Type>0</Type> 67 <Terminal>do</Terminal> 68 </RuleItem> 69 <RuleItem> 70 <Type>1</Type> 71 <NonTerminal>Command</NonTerminal> 72 </RuleItem> 73 </RuleItems> 25 74 </Rule> 26 75 <Rule> 27 76 <Name>RepeatUntil</Name> 28 <RuleItems/> 77 <RuleItems> 78 <RuleItem> 79 <Type>0</Type> 80 <Terminal>repeat</Terminal> 81 </RuleItem> 82 <RuleItem> 83 <Type>1</Type> 84 <NonTerminal>Command</NonTerminal> 85 </RuleItem> 86 <RuleItem> 87 <Type>0</Type> 88 <Terminal>until</Terminal> 89 </RuleItem> 90 <RuleItem> 91 <Type>1</Type> 92 <NonTerminal>Expression</NonTerminal> 93 </RuleItem> 94 </RuleItems> 29 95 </Rule> 30 96 <Rule> … … 42 108 <Rule> 43 109 <Name>Assignment</Name> 44 <RuleItems/> 110 <RuleItems> 111 <RuleItem> 112 <Type>1</Type> 113 <NonTerminal>Variable</NonTerminal> 114 </RuleItem> 115 <RuleItem> 116 <Type>0</Type> 117 <Terminal>:=</Terminal> 118 </RuleItem> 119 <RuleItem> 120 <Type>1</Type> 121 <NonTerminal>Expression</NonTerminal> 122 </RuleItem> 123 </RuleItems> 45 124 </Rule> 46 125 <Rule> … … 48 127 <RuleItems/> 49 128 </Rule> 129 <Rule> 130 <Name>Expression</Name> 131 <RuleItems/> 132 </Rule> 133 <Rule> 134 <Name>Variable</Name> 135 <RuleItems/> 136 </Rule> 50 137 </Rules> 51 138 </GrammerProject>
Note:
See TracChangeset
for help on using the changeset viewer.