Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#8 SubTable + AppendMatch

open
nobody
None
5
2002-07-31
2002-07-31
No

The mxTextTool's "SubTable + AppendMatch" -combination
should be selectable option in Simpleparse. This would
speed up the postprocessing of returned tags.

Discussion

  • 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.