Lexer and Parser Generators
Listings
All links in this category.
Showing 1–45 of 45 editor-approved links.
A modified version of yacc that supports automatic backtracking and semantic disambiguation to parse ambiguous grammars. It also has syntactic sugar for inherited attributes.
A general-purpose parser generator that converts a grammar description for an LALR context-free grammar into a C program to parse that grammar. [Open source, GPL]
A tool for generating an efficient recursive descent parser from an ELL(1) grammar. The grammar may be ambiguous or more general than ELL(1): there are both static and dynamic facilities to resolve the ambiguities.
Very simple LALR(1) open-source parser generator. Outputs C, claims to produce faster parsers than yacc/bison.
Tutorial in Lex and Yacc, tools that simplify compiler construction.
Object-oriented rewrite of Lex and Yacc for C++, with automatic AST class generation, grammar inheritance, minimal state ELR(1) and technology. (Commercial package)
The primary source of maintenance releases for the PCCTS compiler construction tool set. PCCTS is an LL(k) recursive descent parser generator with semantic predicates and backtracking. It was developed by T.J. Parr.
A scanner+LL(k = 1..Inf) parser generator for C++. Allows easy top-down description of grammars in an intuitive and extensible manner. [Open source, GPL]
The version of BtYacc on siber.com suffers from a few minor, but annoying bugs. This is a page with patches.
All about Lex, Yacc, Flex, and Bison: Overview, Online Documentation, Papers, Tools, Pointers
A Flex like scanner code generator, but it generates C++ scanner classes that are re-entrant and compatible with the newer standard of C++/STL. Multiple scanner classes and instances can co-exist in a program without tweaking of macros.
Closed-source, but free LALR(2) parser generator, accepts yacc input with some extensions.
A scanner and lalr(1) parser generator. It has features like automatic derivation of depth grammar, production of the abstract syntax tree including its C interface and preserves full source information to facilitate source-source translation.
This compiler frontend generation system based on an ECLR-attributed grammar is open source, written in C and may be regarded as an extension of Yacc/Bison.
A runtime parser generator library. It generates parsers from BNF-like language grammars. Parsing scripting languages and communication protocol messages are typical use cases. [Public domain]
Port of lex and yacc to Delphi 3. Base at port to Turbo Pascal.
A parsergenerator, a simple c++ interpreter and an interactive debugger combined to a visual development environment, which analyzes, evaluates, converts texts immediately.
A parser generator which compiles attributed LL(1) grammars decorated with C semantic actions into recursive descent compilers.
An interpreting parser, meaning that it accepts as input a grammar and a source file to be parsed according to that grammar, producing an abstract program tree. Very compact implementation.
An LR(1) parser by Intralogic for Backus-Naur form and generating parse tables DLL's in .NET assembly.
Grammatica is a free LL(k) parser generator (compiler compiler) for C# and Java. Support for automatic error recovery, and instant parsing is available.
The combined lexical analyzer and parser generator, which converts a description for a context-free LALR grammar into source file to parse the grammar. [Open source, GPL]
An object-oriented parser generator implemented in Java.
re2c is a tool for writing fast and flexible lexers. A re2c generated scanner is usually 2-3 times faster than a flex based scanner, and its input model is much more flexible.
Takes BNF specification of a grammar and produces a Haskell module containing the parser for that grammar.
A small, flexible parsing engine with practically unlimited backtracking capability. [Open Source]
Interprets parse tables generated from an SDF2 syntax definition. Scannerless means that no scanner is used to tokenize the input stream; the parse table contains enough information for both the lexical and the context-free syntax. [Open source (LGPL)]
The tool allows visual design of lexers and parsers for use in C, C++, Java, Delphi and Visual Basic applications under Windows 95/98/NT/2000, SunOS, Linux and with XML support from version 4.0.
Generation of run-time lexical analysers, increasing flexibility through exposed state machine generated from a lex specification. Compiles under Unix using GCC 4.0.1 and as Visual C++.
LALR parser generator and lexer generator producing fast applications in C/C++.
Yet another Yacc, which accept yacc grammar and produce C++ template-based reentrant code. [Open Source, BSD license]
TPG is a parser generator for Python. Given a simple attributed grammar, it produces a Recursive Descent Parser.
Almost as fast as Bison (for deterministic portions of input) but can parse any context-free grammar. [Open source (BSD)]
A C++ parser library that generates LALR(1) parsers from EBNF grammars.
IronMeta is an implementation of Alessandro Warth's OMeta metaprogramming system in C#. It provides a packrat parser generator that generates parsers for Parsing Expression Grammars that operate on arbitrary streams of objects.
An easy-to-use parser (and lexical) generator for Java, using an extended Parsing Expression Grammar framework and with advanced packrat parsing ability.
NLT is a free, open-source C# lexer and parser suite containing GLR parser, enabling parsing of ambiguous grammars. Grammar can be defined directly in code or in separate file (lex/yacc-like) for included generator.
A parser generator for C++. Currently supporting LALR(1), it may eventually possibly IELR and LALR(k).
A visual parser-generator IDE for developing parsers without any textual grammar specification (BNF/EBNF/PEG), script or code.
Compiles FSMs from regular languages into executable C, C++, Objective-C or D code. The GPL'ed software can be used to create a parser for any language that is regular. Examples include parsing Unix mailbox files and general lexing tasks.
A fast lexical analyser generator. It is a tool for generating programs that perform pattern-matching on text. There are many applications for Flex, including writing compilers in conjunction with GNU Bison. [Open source, GPL]
JS/CC is a LALR(1) parser and lexer generator for JavaScript/ECMAScript which is entirely written in JavaScript.
A parser generator for JavaScript based on the parsing expression grammar formalism.
A model-based parser generator that decouples language specification from language processing, avoiding some of the problems caused by grammar-driven parser generators.
Generates fast tree parsers for cost-augmented tree grammars. A variant of iburg is used in the code generators for lcc.
See also