2 ms·
I am not sure I agree with the claim. What’s really easier with the proposed approach (using a python port of lex and yacc and generating LLVM) than using yacc
by Someone 6y ago
I am not sure I agree with the claim. What’s really easier with the proposed approach (using a
python port of lex and yacc and generating LLVM) than using yacc and lex (with all their warts) to generate C code for your own language was in 1980?
Yes, if your language doesn’t fit C, your implementation could be more efficient (potentially a lot), but getting there isn’t easier.
I think we got a lot of complexity and options since then that distract from “writing your own language”.
I think a claim that we can do better than lex and yacc nowadays (e.g. using Haskell) would be a much stronger argument for “it’s much easier now”