News for hackers. Stuff that matters.
Re:A micro compiler in Ocaml by seanmcdirmid on Tuesday April 01, 2014 @05:08AM (#7506968)
Lexer/parser generators aren't used in practice even for hobbyists, so pointing out standard tools could have been used is weird since the tools are obviously not that popular.
Re:A micro compiler in Ocaml by mimog on Tuesday April 01, 2014 @06:24AM (#7507172)
In my experience lexers and parser generators are used extensively by hobbyists. Tools such as Antlr, Boost.Spirit and Xtext come to mind.
Re:A micro compiler in Ocaml by coldtea on Tuesday April 01, 2014 @03:17PM (#7510956)
Xtext is very marginal compared to the far wider world of custom languages. Antlr not so much, but still, tons of people write rec. des. parsers themselves.
Re:A micro compiler in Ocaml by p4bl0 on Tuesday April 01, 2014 @06:59AM (#7507253)
Is that true? At least in the OCaml ecosystem (where there is many many compilers), ocamllex and menhir seems to be used quite often.
Re:A micro compiler in Ocaml by seanmcdirmid on Tuesday April 01, 2014 @07:13AM (#7507283)
I know a lit of hobbyists and professionals who just roll recursive decent parsers given the reduced complexity and better error recovery. Using these tools, they don't necessarily help unless you have icky syntax to deal with or really care about that last ounce of performance.