Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
arpeggio-gm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
backend
arpeggio-gm
Commits
71701e0e
Commit
71701e0e
authored
Aug 11, 2014
by
Igor Dejanovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing peg_peg example
parent
2d460242
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
peg_peg.py
examples/peg_peg.py
+12
-12
No files found.
examples/peg_peg.py
View file @
71701e0e
...
@@ -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
,
SemSequen
ce
,
\
from
arpeggio.peg
import
SemGrammar
,
sem_rule
,
sem_sequence
,
sem_ordered_choi
ce
,
\
SemPrefix
,
SemSufix
,
SemExpression
,
SemRegEx
,
SemStrMatch
,
SemRuleCrossR
ef
sem_sufix
,
sem_prefix
,
sem_strmatch
,
sem_regex
,
sem_rule_crossr
ef
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"
:
Sem
Expression
(),
"expression"
:
Sem
anticActionSingleChild
(),
"regex"
:
SemRegEx
()
,
"regex"
:
sem_regex
,
"str_match"
:
SemStrMatch
()
,
"str_match"
:
sem_strmatch
,
"rule_crossref"
:
SemRuleCrossRef
()
"rule_crossref"
:
sem_rule_crossref
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment