from scratch. What PLs official implementation use parser generator? IIRC Bash, PHP. Either old-fashioned or home-made.
Parsing efficiency is important when you have several kilobytes of memory. Nowadays, human-friendly diagnostics prevails.
What's more, PLs are usually CSGs instead of CFGs. You need lots of hack to use the traditional LALR parser generator.
Why torture yourself with a parser generator when a simple and intuitive recursive descent parser works smoothly?
gcc uses bison if i recall
Обсуждают сегодня