A parser-generator is a tool that accepts a grammar description of a language (usually as an extended Backus-Naur Formalism (EBNF)), and generates computer code that will parse the language described by that grammar. Parser generators may produce recursive descent parsers, Earley parsers, L(AL)R parsers, or other more exotic parser types.
A parser-generator is a tool that accepts a grammar description of a language (usually as an extended Backus-Naur Formalism (EBNF)), and generates computer code that will parse the language described by that grammar. Parser generators may produce recursive descent parsers, Earley parsers, L(AL)R parsers, or other more exotic parser types. Often a parser generator produces code that interfaces well with a particular type of lexer generator, which is a type of parser generator that accepts regular expressions instead of EBNF, and is used to parse an input stream into tokens that are the abstract elements of the language processed by the EBNF.