Commit 71701e0e authored by Igor Dejanovic's avatar Igor Dejanovic

Fixing peg_peg example

parent 2d460242
...@@ -15,20 +15,20 @@ from arpeggio.export import PMDOTExporter, PTDOTExporter ...@@ -15,20 +15,20 @@ from arpeggio.export import PMDOTExporter, PTDOTExporter
from arpeggio.peg import ParserPEG from arpeggio.peg import ParserPEG
# Semantic actions # Semantic actions
from arpeggio.peg import SemGrammar, SemRule, SemOrderedChoice, SemSequence,\ from arpeggio.peg import SemGrammar, sem_rule, sem_sequence, sem_ordered_choice,\
SemPrefix, SemSufix, SemExpression, SemRegEx, SemStrMatch, SemRuleCrossRef sem_sufix, sem_prefix, sem_strmatch, sem_regex, sem_rule_crossref
sem_actions = { sem_actions = {
"peggrammar": SemGrammar(), "peggrammar": SemGrammar(),
"rule": SemRule(), "rule": sem_rule,
"ordered_choice": SemOrderedChoice(), "ordered_choice": sem_ordered_choice,
"sequence": SemSequence(), "sequence": sem_sequence,
"prefix": SemPrefix(), "prefix": sem_prefix,
"sufix": SemSufix(), "sufix": sem_sufix,
"expression": SemExpression(), "expression": SemanticActionSingleChild(),
"regex": SemRegEx(), "regex": sem_regex,
"str_match": SemStrMatch(), "str_match": sem_strmatch,
"rule_crossref": SemRuleCrossRef() "rule_crossref": sem_rule_crossref
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment