4 ms·
@LeSUTHU: * if you want to design and play around with your grammar (builtin interpreter is very nice to try things out): https://www.antlr3.org/works/ https:
by x0re4x 5y ago
@LeSUTHU:
* if you want to design and play around with your grammar (builtin interpreter is very nice to try things out):
https://www.antlr3.org/works/ https://www.antlr3.org/works/
* once you want to actually implement your language:
https://cs3110.github.io/textbook/chapters/interp/intro.html https://cs3110.github.io/textbook/chapters/interp/intro.html
* some older tutorials:
https://web.archive.org/web/20051220013748/http://pllab.kaist.ac.kr/~shoh/ocaml/ocamllex-ocamlyacc/ocamllex-tutorial/ https://web.archive.org/web/20051220013748/http://pllab.kais...
https://web.archive.org/web/20051220043933/http://pllab.kaist.ac.kr/~shoh/ocaml/ocamllex-ocamlyacc/ocamlyacc-tutorial/ https://web.archive.org/web/20051220043933/http://pllab.kais...
NOTE: modern replacement for ocamlyacc: http://gallium.inria.fr/~fpottier/menhir/ http://gallium.inria.fr/~fpottier/menhir/