Closed Roadagain closed 7 years ago
Why not adding Parenthesized [Token]
constructor to Token
?
I think to specialize parenthesized tokens makes the implements simple.
Does anyone have (tiny|concrete) idea?
great, i'm gonna do it.
i guessed Parenthesized
node will have only one Tree, so it seems like an edge.
is it really needed?
if construct from "(1+2)*3"
, the tree should be like this:
*
/ \
+ 3
/ \
1 2
if it is not, i need some reasons to understand.
All right. You can leave parenthesized operator, but it is not important.
In lexical parser layer, I send you Parenthesized
token, so I leave how treat it to you .
I implemented parenthesized
parser.
If it has no problem, please merge and engage in syntactic approach.
i have merged it. great job :+1:
Looks good! Can I merge this commit?
sorry to be late, PR was created. please merge it!
close via #14 and #17.
next, adapt tiny to bracketed expressions!