ometa/parsley_termactions.parsley
raw| 1 | ruleValue = ws '->' term:tt -> t.Action(tt) |
| 2 | |
| 3 | semanticPredicate = ws '?(' term:tt ws ')' -> t.Predicate(tt) |
| 4 | |
| 5 | semanticAction = ws '!(' term:tt ws ')' -> t.Action(tt) |
| 6 | |
| 7 | application = indentation? name:name |
| 8 | ('(' term_arglist:args ')' |
| 9 | -> t.Apply(name, self.rulename, args) |
| 10 | | -> t.Apply(name, self.rulename, [])) |