The mxTextTool's "SubTable + AppendMatch" -combination
should be selectable option in Simpleparse. This would
speed up the postprocessing of returned tags.
I'm missing something... why not just use Table +
AppendMatch? If what you want to do is return "abc" as the
value from some group, why does it matter whether it's a
Table or a SubTable? (Since the Table doesn't report it's
results tuple when it does an AppendMatch).
Set _m_productionName = AppendMatch on your processor object
and the production will get reported as a simple string
(though, to be quite frank, not sure I've got a test for
AppendMatch in the test suite at the moment). If you have a
grammar:
a := b,c,(d,e)
where you wanted SubTable + AppendMatch for (d,e), then use:
a := b,c, f
f := (d,e)
and make _m_f = AppendMatch.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=34901
I'm missing something... why not just use Table +
AppendMatch? If what you want to do is return "abc" as the
value from some group, why does it matter whether it's a
Table or a SubTable? (Since the Table doesn't report it's
results tuple when it does an AppendMatch).
Set _m_productionName = AppendMatch on your processor object
and the production will get reported as a simple string
(though, to be quite frank, not sure I've got a test for
AppendMatch in the test suite at the moment). If you have a
grammar:
a := b,c,(d,e)
where you wanted SubTable + AppendMatch for (d,e), then use:
a := b,c, f
f := (d,e)
and make _m_f = AppendMatch.