There are no complicated if-then-else sequences for decision making or backtracking. Grako generated parsers simply assert what must be parsed. Generated parsers use Python’s very efficient exception-handling system to backtrack. Grako is different from other PEG parser generators: Grako (for grammar compiler) is a tool that takes grammars in a variation of EBNF as input, and outputs memoizing ( Packrat) PEG parsers in Python. But someone does win the lottery, and doing a language at least teaches you something.Ĭreator of the C programming language and of Unix Grako There are plenty of beautiful languages (more beautiful than C) that didn’t catch on. It’s a lottery, and some can buy a lot of the tickets. Don’t have any expectations that anyone will use it, unless you hook up with some sort of organization in a position to push it hard. At least for the people who send me mail about a new language that they’re designing, the general advice is: do it to learn about how to write a compiler.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |