# lemon を Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

lemon のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:lemon
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install lemon
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lemon
```

  証拠: MacPorts ports tree: lang/lemon/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install lemon
```

  証拠: Debian stable package indexes: lemon from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install lemon
```

  証拠: Fedora Rawhide package metadata: lemon from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#lemon
```

  証拠: nixpkgs package indexes: pkgs/by-name/le/lemon/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S lemon
```

  証拠: Arch Linux sync databases: lemon from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install lemon
```

  証拠: openSUSE Tumbleweed package metadata: lemon from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:lemon
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/lemon>
- **バージョン:** 3.53.3
- **ソース概要:** LALR(1) parser generator like yacc or bison
- **ホームページ:** <https://www.hwaci.com/sw/lemon/>
- **リポジトリ:** <https://www.sqlite.org/src>
- **上流ドキュメント:** <https://www.hwaci.com/sw/lemon>
- **ライセンス:** blessing
- **ソースアーカイブ:** <https://www.sqlite.org/2026/sqlite-src-3530300.zip>
- **最終更新:** 2026-06-27T14:08:56Z
- **生成日時:** 2026-07-08T07:18:31+00:00

## 実行可能ファイル

- lemon (cli)
- lemon (エイリアス)

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 3.53.3
- マネージャ更新日: 2026-06-27
- ローカルデータ: OK
- 上流リポジトリ: https://www.hwaci.com/sw/lemon/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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.

### タイムライン

- 2000s: Lemon became part of the SQLite source tree as the generator for SQLite's SQL parser.
- 2022: SQLite's Lemon documentation described Lemon as having no standalone source repository and being maintained as files inside the SQLite tree.

### Related projects

- SQLite is the parent project and primary user.
- yacc and GNU Bison are the older parser-generator family Lemon is commonly compared with.

### ソース

- <https://sqlite.org/lemon.html>
- <https://www.hwaci.com/sw/lemon/>


## セキュリティノート

lemon に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## ソースデータベース詳細

- **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:** stable

## 他のパッケージマネージャ記録

- Debian apt - lemon - 3.46.1-7+deb13u1: normalized package name match | Debian stable package indexes: lemon from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | LALR(1) Parser Generator for C or C++ | https://www.sqlite.org/
- Nix - lemon: normalized package name match | nixpkgs package indexes: pkgs/by-name/le/lemon/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - lemon - 3.45.1-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: lemon from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | LALR(1) Parser Generator for C or C++ | https://www.sqlite.org/
- dnf - lemon - 3.53.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: lemon from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A parser generator | http://www.sqlite.org/
- pacman - lemon - 3.53.2-1: normalized package name match | Arch Linux sync databases: lemon from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | A parser generator | https://www.sqlite.org/
- zypper - lemon - 3.53.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: lemon from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A parser generator | https://www.sqlite.org/
- MacPorts - lemon: normalized package name match | MacPorts ports tree: lang/lemon/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/ja/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/ja/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/ja/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [antlr](https://www.automicvault.com/ja/pkg/brew/antlr/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator, parser-generators.
- [bison](https://www.automicvault.com/ja/pkg/brew/bison/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator, parser-generators.
- [goyacc](https://www.automicvault.com/ja/pkg/brew/goyacc/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator, parser-generators.
- [packcc](https://www.automicvault.com/ja/pkg/brew/packcc/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator, parser-generators.
- [byacc](https://www.automicvault.com/ja/pkg/brew/byacc/) - Shares av.db curated category or tags: cli, developer-tools, lalr, parser-generator.
- [bnfc](https://www.automicvault.com/ja/pkg/brew/bnfc/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator.
- [javacc](https://www.automicvault.com/ja/pkg/brew/javacc/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator.
- [kaitai-struct-compiler](https://www.automicvault.com/ja/pkg/brew/kaitai-struct-compiler/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator.

## Combined YAML source

View the package source record on GitHub. [combined/lemon.yml](https://github.com/automic-vault/db/blob/main/combined/lemon.yml)


## ソース

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
