A Guide to Parsing: Algorithms and Technology (Part 5) - DZone AI
Be sure to check out Part 1, Part 2, Part 3, and Part 4 first! There are two main formats for a grammar: BNF (and its variants) and PEG. Many tools implement their own variants of these ideal formats. Some tools use custom formats altogether. A frequent custom format consists of a three-part grammar: options together with custom code, followed by the lexer section and finally the parser one.
Dec-24-2017, 15:11:42 GMT
- Technology: