|
|
|
|
|
by WalterBright
4522 days ago
|
|
> dealing with corner cases, writing tests, and maintaining the parser as the language evolves are a couple more things that might take a lot more work. Not really. Seriously, if you're going to get bogged down trying to get the lexer/parser to work, you're not ready to work on a full blown language/compiler. Lexing/parsing is the EASY part, as in a minute, insignificant part of the time you'll invest in the project. I really do mean that. |
|
I'm genuinely interested by your comment. If I'm interpreting it correctly, you seem to be claiming that ensuring corner cases are handled correctly, testing, and maintaining a parser require a trivially small amount of work. What do you use to build your parsers?