Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
_revy
on Sept 17, 2020
|
parent
|
context
|
favorite
| on:
A Handwritten Math Parser in 100 lines of Python
Doesn't shunting yard solve this pretty simply? Once you have an expression in RPN, building expression trees is pretty easy.
rbtprograms
on Sept 17, 2020
|
next
[–]
I recently did this same project in Javascript and you're correct, shunting yard is perfect for this.
MH15
on Sept 17, 2020
|
prev
[–]
I did a project with Shunting-Yard in Golang and yes, that's the proper way to do this.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: