-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constructing syntax trees #11
Comments
i guess constructing unary operators as data Tree token = Leaf token |
Binary (Tree token) token (Tree token) |
Unary token (Tree token) if we use this construction, should we rename |
agree to your idea completely.
Your last comment is better.
I think it's no problem naming. |
constructing trees has been done by a2a266d, but it doesn't seem beautiful. i have two ideas:
if you have something else, write here. |
Move past TreeState to LexicalTreeState
bugfix has been done, then i wish to implement prioritized construct. |
Cannot you deal with it with an associated array (operator => priority)? |
well... i will try it. |
succeeded. |
Great job. btw, I was surprised by returning an unary tree from |
If you think it is a no important problem, please create PR now. |
i've forgotten it is implemented to make easier to test. |
i guess no functions can surprise u already. |
i guess the trees will be like this constructed by values and binary operators.
i have 2 questions:
The text was updated successfully, but these errors were encountered: