mcfletch / simpleparse

SimpleParse parser generator using mxTextTools (launchpad mirror)
Other
10 stars 12 forks source link

discrepancy between actual SPGenearator and declaration string in simpleparsegrammar.py #14

Open hernot opened 2 years ago

hernot commented 2 years ago

Just a quick question as i came across while trying to figure a solution for issue #13.

Are there any reasons why the SPGenerator defines

unreportedname := '<', ts, name, ts, '>'
reportedname     := '>', ts, name, ts, '<'

while all the examples in documentation, the ebnf grammar in the documentation and the declaration string define the same as

unreportedname := '<', name, '>'
expandedname   := '>', name, '<'

Is this discrepancy between documented and actual definition by intention? Which definition should be used to resolve and which should be adopted accordingly?

For testing i temporarily pick documented definition and adopt actual.