3 ms·
There is not much point in writing a parser without using a parser generator. Now, if you want to know how to make a parser generator, I recommend starting her
by betterunix 13y ago
There is not much point in writing a parser without using a parser generator. Now, if you want to know how to make a parser generator, I recommend starting here:
https://en.wikipedia.org/wiki/Shift-reduce_parsing https://en.wikipedia.org/wiki/Shift-reduce_parsing
https://en.wikipedia.org/wiki/LALR_parser https://en.wikipedia.org/wiki/LALR_parser
If you want lots of detail, there is always this:
http://www.amazon.com/Compilers-Principles-Techniques-Tools-Edition/dp/0321486811/ref=sr_1_3?ie=UTF8&qid=1385433702&sr=8-3&keywords=dragon+book http://www.amazon.com/Compilers-Principles-Techniques-Tools-...
- vidarh 13y agoI couldn't disagree more. Parser generators are ok for trivial grammars with limited error handling. They're generally horrible for writing compilers.