lemon
« Back to VersTracker
Description:
LALR(1) parser generator like yacc or bison
Type: Formula  |  Latest Version: 3.51.2@0  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: parser-generator compiler c c++ development
Install: brew install lemon
About:
Lemon is a specialized LALR(1) parser generator designed to be robust, efficient, and easy to integrate into C and C++ projects. It generates a complete, self-contained C source file for the parsing engine, eliminating external runtime dependencies. This tool is a modern, public-domain alternative to traditional utilities like Yacc and Bison.
Key Features:
  • Generates highly optimized, dependency-free C code
  • Supports both LALR(1) and GLR parsing algorithms
  • Simple, clean grammar syntax with integrated C code actions
  • Public domain license for unrestricted use
Use Cases:
  • Building custom programming language interpreters or compilers
  • Creating robust parsers for configuration files and data formats
  • Adding complex command-line parsing to C/C++ applications
Alternatives:
  • Bison – Bison is a more feature-rich GNU project, while Lemon is public domain and known for its simplicity and zero-dependency output.
  • Yacc – The classic Unix utility; Lemon is a modern successor with a different syntax and focus on embedded use.
Version History
Detected Version Rev Change Commit
Jan 9, 2026 9:59pm 3.51.2 0 VERSION_BUMP 794bddf9
Sep 15, 2025 3:54pm 3.50.4 0 VERSION_BUMP d0e076f7
Oct 23, 2024 10:21am 3.47.0 0 VERSION_BUMP bffd1257
Sep 14, 2024 2:01pm 3.46.1 0 VERSION_BUMP 44f31b57