Changeset 116 for branches/generator/pascal.grm
- Timestamp:
- Nov 27, 2017, 10:04:52 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/pascal.grm
r114 r116 4 4 <Rule> 5 5 <Name>BeginEnd</Name> 6 < Type>0</Type>7 <RuleItems>6 <RuleItems> 7 <Type>0</Type> 8 8 <RuleItem> 9 9 <Type>0</Type> … … 22 22 <Rule> 23 23 <Name>IfThenElse</Name> 24 < Type>0</Type>25 <RuleItems>24 <RuleItems> 25 <Type>0</Type> 26 26 <RuleItem> 27 27 <Type>0</Type> … … 56 56 <Rule> 57 57 <Name>WhileDo</Name> 58 < Type>0</Type>59 <RuleItems>58 <RuleItems> 59 <Type>0</Type> 60 60 <RuleItem> 61 61 <Type>0</Type> … … 78 78 <Rule> 79 79 <Name>RepeatUntil</Name> 80 < Type>0</Type>81 <RuleItems>80 <RuleItems> 81 <Type>0</Type> 82 82 <RuleItem> 83 83 <Type>0</Type> … … 100 100 <Rule> 101 101 <Name>ForToDo</Name> 102 < Type>0</Type>103 <RuleItems>102 <RuleItems> 103 <Type>0</Type> 104 104 <RuleItem> 105 105 <Type>0</Type> … … 138 138 <Rule> 139 139 <Name>WithDo</Name> 140 < Type>0</Type>141 <RuleItems>140 <RuleItems> 141 <Type>0</Type> 142 142 <RuleItem> 143 143 <Type>0</Type> … … 160 160 <Rule> 161 161 <Name>CaseOf</Name> 162 < Type>0</Type>163 <RuleItems>162 <RuleItems> 163 <Type>0</Type> 164 164 <RuleItem> 165 165 <Type>0</Type> … … 182 182 <Rule> 183 183 <Name>Assignment</Name> 184 < Type>0</Type>185 <RuleItems>184 <RuleItems> 185 <Type>0</Type> 186 186 <RuleItem> 187 187 <Type>1</Type> … … 200 200 <Rule> 201 201 <Name>Statement</Name> 202 < Type>1</Type>203 <RuleItems>202 <RuleItems> 203 <Type>0</Type> 204 204 <RuleItem> 205 205 <Type>1</Type> … … 238 238 <Rule> 239 239 <Name>Expression</Name> 240 <Type>0</Type> 241 <RuleItems/> 240 <RuleItems> 241 <Type>0</Type> 242 </RuleItems> 242 243 </Rule> 243 244 <Rule> 244 245 <Name>VariableRef</Name> 245 <Type>0</Type> 246 <RuleItems/> 246 <RuleItems> 247 <Type>0</Type> 248 </RuleItems> 247 249 </Rule> 248 250 <Rule> 249 251 <Name>Program</Name> 250 < Type>0</Type>251 <RuleItems>252 <RuleItems> 253 <Type>0</Type> 252 254 <RuleItem> 253 255 <Type>1</Type> … … 262 264 <Rule> 263 265 <Name>Uses</Name> 264 < Type>0</Type>265 <RuleItems>266 <RuleItems> 267 <Type>0</Type> 266 268 <RuleItem> 267 269 <Type>0</Type> … … 270 272 <RuleItem> 271 273 <Type>1</Type> 274 <NonTerminal>UnitReference</NonTerminal> 275 </RuleItem> 276 <RuleItem> 277 <Type>0</Type> 278 <Terminal>,</Terminal> 279 </RuleItem> 280 </RuleItems> 281 </Rule> 282 <Rule> 283 <Name>UnitName</Name> 284 <RuleItems> 285 <Type>0</Type> 286 </RuleItems> 287 </Rule> 288 <Rule> 289 <Name>Function</Name> 290 <RuleItems> 291 <Type>0</Type> 292 <RuleItem> 293 <Type>0</Type> 294 <Terminal>function</Terminal> 295 </RuleItem> 296 <RuleItem> 297 <Type>1</Type> 298 <NonTerminal>Identifier</NonTerminal> 299 </RuleItem> 300 <RuleItem> 301 <Type>0</Type> 302 <Terminal>;</Terminal> 303 </RuleItem> 304 <RuleItem> 305 <Type>1</Type> 306 <NonTerminal>BeginEnd</NonTerminal> 307 </RuleItem> 308 <RuleItem> 309 <Type>0</Type> 310 <Terminal>;</Terminal> 311 </RuleItem> 312 </RuleItems> 313 </Rule> 314 <Rule> 315 <Name>Identifier</Name> 316 <RuleItems> 317 <Type>0</Type> 318 </RuleItems> 319 </Rule> 320 <Rule> 321 <Name>VarSection</Name> 322 <RuleItems> 323 <Type>0</Type> 324 <RuleItem> 325 <Type>0</Type> 326 <Terminal>var</Terminal> 327 </RuleItem> 328 <RuleItem> 329 <Type>1</Type> 330 <NonTerminal>VariableDefinition</NonTerminal> 331 </RuleItem> 332 </RuleItems> 333 </Rule> 334 <Rule> 335 <Name>FunctionParameters</Name> 336 <RuleItems> 337 <Type>0</Type> 338 <RuleItem> 339 <Type>0</Type> 340 <Terminal>(</Terminal> 341 </RuleItem> 342 <RuleItem> 343 <Type>1</Type> 344 <NonTerminal>FunctionParameter</NonTerminal> 345 </RuleItem> 346 <RuleItem> 347 <Type>0</Type> 348 <Terminal>)</Terminal> 349 </RuleItem> 350 </RuleItems> 351 </Rule> 352 <Rule> 353 <Name>FunctionParameter</Name> 354 <RuleItems> 355 <Type>0</Type> 356 </RuleItems> 357 </Rule> 358 <Rule> 359 <Name>VariableDefinition</Name> 360 <RuleItems> 361 <Type>0</Type> 362 <RuleItem> 363 <Type>1</Type> 364 <NonTerminal>VariableName</NonTerminal> 365 </RuleItem> 366 <RuleItem> 367 <Type>0</Type> 368 <Terminal>:</Terminal> 369 </RuleItem> 370 <RuleItem> 371 <Type>1</Type> 372 <NonTerminal>TypeReference</NonTerminal> 373 </RuleItem> 374 <RuleItem> 375 <Type>0</Type> 376 <Terminal>;</Terminal> 377 </RuleItem> 378 </RuleItems> 379 </Rule> 380 <Rule> 381 <Name>TypeReference</Name> 382 <RuleItems> 383 <Type>0</Type> 384 </RuleItems> 385 </Rule> 386 <Rule> 387 <Name>VariableName</Name> 388 <RuleItems> 389 <Type>0</Type> 390 </RuleItems> 391 </Rule> 392 <Rule> 393 <Name>Unit</Name> 394 <RuleItems> 395 <Type>0</Type> 396 <RuleItem> 397 <Type>0</Type> 398 <Terminal>unit</Terminal> 399 </RuleItem> 400 <RuleItem> 401 <Type>1</Type> 272 402 <NonTerminal>UnitName</NonTerminal> 273 403 </RuleItem> 274 404 <RuleItem> 275 405 <Type>0</Type> 276 <Terminal>,</Terminal>277 </RuleItem>278 </RuleItems>279 </Rule>280 <Rule>281 <Name>UnitName</Name>282 <Type>0</Type>283 <RuleItems/>284 </Rule>285 <Rule>286 <Name>Function</Name>287 <Type>0</Type>288 <RuleItems>289 <RuleItem>290 <Type>0</Type>291 <Terminal>function</Terminal>292 </RuleItem>293 <RuleItem>294 <Type>1</Type>295 <NonTerminal>Identifier</NonTerminal>296 </RuleItem>297 <RuleItem>298 <Type>0</Type>299 406 <Terminal>;</Terminal> 300 407 </RuleItem> 301 <RuleItem> 302 <Type>1</Type> 303 <NonTerminal>BeginEnd</NonTerminal> 304 </RuleItem> 305 <RuleItem> 306 <Type>0</Type> 307 <Terminal>;</Terminal> 308 </RuleItem> 309 </RuleItems> 310 </Rule> 311 <Rule> 312 <Name>Identifier</Name> 313 <Type>0</Type> 314 <RuleItems/> 315 </Rule> 316 <Rule> 317 <Name>VarSection</Name> 318 <Type>0</Type> 319 <RuleItems> 320 <RuleItem> 321 <Type>0</Type> 322 <Terminal>var</Terminal> 323 </RuleItem> 408 </RuleItems> 409 </Rule> 410 <Rule> 411 <Name>UnitReference</Name> 412 <RuleItems> 413 <Type>0</Type> 324 414 </RuleItems> 325 415 </Rule>
Note:
See TracChangeset
for help on using the changeset viewer.