3 ms·
Undergrad was when I learned about the subject. It was done with tools like Lex and Yacc, along with the Dragon book. These tools are fine but only work in C.
by ww520 3y ago
Undergrad was when I learned about the subject. It was done with tools like Lex and Yacc, along with the Dragon book. These tools are fine but only work in C. Yacc/Bison generate LALR bottom up parsers, which can be difficult to debug and use. Also it's difficult to implement error recovery. If you want to do it in another language or want to have more control, hand rolling the lexer and parser is not too bad.