macOS
brew install lemonlocal Homebrew formula metadata
sudo port install lemonMacPorts ports tree · lang/lemon/Portfile · source: api.github.com
brew
LALR(1) parser generator like yacc or bison. Version 3.53.3 via Homebrew; verified 2026-06-27.
install
brew install lemonlocal Homebrew formula metadata
sudo port install lemonMacPorts ports tree · lang/lemon/Portfile · source: api.github.com
sudo apt install lemonDebian stable package indexes · lemon · source: deb.debian.org
sudo dnf install lemonFedora Rawhide package metadata · lemon · source: dl.fedoraproject.org
nix profile install nixpkgs#lemonnixpkgs package indexes · pkgs/by-name/le/lemon/package.nix · source: api.github.com
sudo pacman -S lemonArch Linux sync databases · lemon · source: geo.mirror.pkgbuild.com
sudo zypper install lemonopenSUSE Tumbleweed package metadata · lemon · source: download.opensuse.org
overview
LALR(1) parser generator like yacc or bison
history
Lemon is an LALR(1) parser generator in the SQLite orbit: a yacc-like tool for generating C parsers, but with a deliberately different grammar format and a reentrant, thread-safe parser model.
The project is documented by Hwaci and SQLite as a small code-generation utility rather than a standalone source repository. SQLite documents Lemon as a set of files kept inside the SQLite source tree, including lemon.c for the generator, lempar.c for the parser template, and lemon.html for detailed documentation.
Lemon evolved as a tool shaped by SQLite's own parser needs. SQLite's Lemon page notes that keeping the generator inside the SQLite project allowed the tool to gain SQLite-specific features, such as fallback tokens for SQL keywords and changes aimed at efficient parser generation.
Its most important adoption path is SQLite itself. SQLite uses Lemon to generate the main SQL parser from parse.y, and also uses it for FTS5 query-pattern parsing from fts5parse.y.
Outside SQLite, Lemon is attractive to C projects that want a compact parser generator with generated parsers that avoid yacc's global-state style.
Users write a context-free grammar and run lemon to emit C parser code. Compared with yacc and bison, Lemon uses different grammar syntax, expects the tokenizer to call the parser, and emphasizes reentrant and thread-safe generated parsers.
Lemon is a package-nerd favorite because it is a small, old-school build-time tool hidden inside one of the most widely deployed C projects. Installing it as a separate package gives developers access to SQLite's parser generator without vendoring the SQLite source tree.
security posture
No matching local secret-handling manifest was found for lemon. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
lemon | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://www.hwaci.com/sw/lemon/
install metadata
| Package key | brew:lemon |
|---|---|
| Version | 3.53.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/lemon |
| Homepage | https://www.hwaci.com/sw/lemon/ |
| Repository | https://www.sqlite.org/src |
| Upstream docs | https://www.hwaci.com/sw/lemon |
| License | blessing |
| Source archive | https://www.sqlite.org/2026/sqlite-src-3530300.zip |
| Last updated | 2026-06-27T14:08:56Z |
| Pulse | updated |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | lemon |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
lemon 3.46.1-7+deb13u1
LALR(1) Parser Generator for C or C++
sudo apt install lemonlemon
nix profile install nixpkgs#lemonlemon 3.45.1-1ubuntu2
LALR(1) Parser Generator for C or C++
sudo apt install lemonlemon 3.53.2-1.fc45
A parser generator
sudo dnf install lemonlemon 3.53.2-1
A parser generator
sudo pacman -S lemonlemon 3.53.2-1.1
A parser generator
sudo zypper install lemonlemon
sudo port install lemonsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.