Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
justinmeiners
· 6y ago · 0 comments
Doesn't shunting yard solve this pretty simply? Once you have an expression in RPN, building expression trees is pretty easy.
Comments
[–]
rbtprograms
6y ago
I recently did this same project in Javascript and you're correct, shunting yard is perfect for this.
[–]
MH15
6y ago
I did a project with Shunting-Yard in Golang and yes, that's the proper way to do this.