Revision 12
Added by over 7 years ago
ooa.g | ||
---|---|---|
20 | 20 |
|
21 | 21 |
History |
22 | 22 |
~~~~~~~ |
23 |
Changes 1.09 to 1.10 |
|
24 |
- allow actions to be declared with empty parameter lists and "()" |
|
25 |
|
|
26 |
Changes 1.08 to 1.09 |
|
27 |
~ fix actionBody rule to allow multiple prioritized compositions (replace "?" by "*") |
|
28 |
|
|
23 | 29 |
Changes 1.07 to 1.08 |
24 | 30 |
~ remove support for Qualitative Action Systems |
25 | 31 |
|
... | ... | |
140 | 146 |
Ulysses OO-Action System Parser |
141 | 147 |
|
142 | 148 |
Copyright Graz University of Technology 2009 |
143 |
Copyright AIT Austrian Institute of Technology 2013 |
|
149 |
Copyright AIT Austrian Institute of Technology 2013, 2016 |
|
150 |
Version 1.09 |
|
144 | 151 |
*/ |
145 | 152 |
package org.momut.ooas.parser; |
146 | 153 |
|
... | ... | |
377 | 384 |
: {actionType = FunctionTypeEnum.Internal;} |
378 | 385 |
(T_CTRL {actionType = FunctionTypeEnum.Controllable;}| T_OBS {actionType = FunctionTypeEnum.Observable;}| ) |
379 | 386 |
actionname=T_IDENTIFIER {newAction = createNamedAction(actionname,actionType);} |
380 |
(T_LPAREN methodParameterList[newAction] T_RPAREN)? |
|
387 |
(T_LPAREN methodParameterList[newAction]? T_RPAREN)?
|
|
381 | 388 |
T_EQUAL |
382 | 389 |
(T_VAR localActionVars[newAction] )? |
383 | 390 |
body=discreteActionBody |
... | ... | |
483 | 490 |
actionBody[Block top] |
484 | 491 |
returns [Block result] |
485 | 492 |
: {result = createPrioBlock(top); pushBlockToResolveStack(result);} |
486 |
actionBodyParallel[result] (T_PRIO actionBodyParallel[result])?
|
|
493 |
actionBodyParallel[result] (T_PRIO actionBodyParallel[result])*
|
|
487 | 494 |
; |
488 | 495 |
finally |
489 | 496 |
{popBlockFromResolveStack(result);} |
Also available in: Unified diff
latest version of the ooas compiler, with grammar version 1.10