Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

TreeOutput.OutputTree should output tokens in similar format to parse tree nodes #107

Closed
kaby76 opened this issue Nov 6, 2020 · 0 comments

Comments

@kaby76
Copy link
Owner

kaby76 commented Nov 6, 2020

When Trash outputs a tree, parse tree nodes are printed with a leading '(', then the name of the node. But, for tokens, the name is not printed. This makes it hard to come up with a name to use in an xpath expression if you want to grep for it.

So, instead of this

( ebnfSuffix
    ( DEFAULT_TOKEN_CHANNEL i=51 txt=+ tt=44
 ) )

output this

( ebnfSuffix
    ( PLUS i=51 txt=+ tt=44 DEFAULT_TOKEN_CHANNEL
 ) )
kaby76 added a commit that referenced this issue Nov 6, 2020
…nd the string input. Adding test for (x+)?, which should be instead x*. Adding line numbers option to "text" command.
@kaby76 kaby76 closed this as completed Nov 21, 2020
kaby76 added a commit to kaby76/Domemtech.TrashBase that referenced this issue Apr 2, 2021
… tree pipeline to include docs and the string input. Adding test for (x+)?, which should be instead x*. Adding line numbers option to "text" command.
kaby76 added a commit to kaby76/Trash that referenced this issue Apr 2, 2021
… tree pipeline to include docs and the string input. Adding test for (x+)?, which should be instead x*. Adding line numbers option to "text" command.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant