File: parsley_termactions.parsley

package info (click to toggle)
python-parsley 1.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,048 kB
  • sloc: python: 9,897; makefile: 127
file content (10 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
ruleValue = ws '->' term:tt -> t.Action(tt)

semanticPredicate = ws '?(' term:tt ws ')' -> t.Predicate(tt)

semanticAction = ws '!(' term:tt ws ')' -> t.Action(tt)

application = indentation? name:name
                  ('(' term_arglist:args ')'
                    -> t.Apply(name, self.rulename, args)
                  | -> t.Apply(name, self.rulename, []))