# treecc を Homebrew, MacPorts でインストール

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

## インストール

```sh
sudo av install brew:treecc
```

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

### macOS

- Homebrew (100%):

```sh
brew install treecc
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install treecc
```

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

## パッケージ情報

- **パッケージキー:** brew:treecc
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/treecc>
- **バージョン:** 0.3.10
- **ソース概要:** Aspect-oriented approach to writing compilers
- **ホームページ:** <https://gnu.org/software/dotgnu/treecc/treecc.html>
- **リポジトリ:** <https://git.savannah.gnu.org/cgit/dotgnu-pnet>
- **上流ドキュメント:** <https://www.gnu.org/software/dotgnu/treecc/treecc.html>
- **ライセンス:** GPL-2.0-or-later
- **ソースアーカイブ:** <https://download.savannah.gnu.org/releases/dotgnu-pnet/treecc-0.3.10.tar.gz>
- **生成日時:** 2026-07-08T07:18:31+00:00

## 実行可能ファイル

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

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 0.3.10
- ローカルデータ: OK
- 上流リポジトリ: https://gnu.org/software/dotgnu/treecc/treecc.html
- 情報: No package-manager update timestamp was available.
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

treecc is an older GNU/DotGNU compiler-construction tool for generating tree-building and tree-walking code from declarative input files.

### プロジェクトの歴史

The GNU treecc manual frames the tool as a complement to lex and yacc: traditional parser tools help with tokenizing and parsing, but leave semantic analysis, tree construction, and code generation largely to the programmer.

treecc's approach is to use a simple rule-based language, with embedded implementation code, that a translator converts into ordinary source code. The generated code helps build and walk trees and checks that relevant operations have been implemented for node types.

Historically, treecc lived inside the DotGNU/Portable.NET world. GNU's DotGNU page lists Portable.NET as an implementation of the Common Language Infrastructure and records releases that included TreeCC in the mid-2000s; it also states that DotGNU was decommissioned as of December 2012 except for libjit.

### 採用の歴史

treecc appears to have remained a niche compiler-construction utility rather than becoming a general parser ecosystem. Its package-manager interest is mostly archival and practical: keeping old DotGNU-era source packages buildable and keeping a small AOP-influenced compiler helper available.

### 使われ方

The documented command form is `treecc [OPTIONS] INPUT ...`, with options to select output and header files, Java output directories, extensions, forced creation, no-output checking, and option values supplied from the command line.

### パッケージ好きにとっての重要性

treecc is significant mainly as a preserved GNU-era compiler tool: small, specific, historically tied to Portable.NET, and useful to package maintainers who care about old language-runtime experiments.

### タイムライン

- 2004: GNU DotGNU news records Portable.NET 0.6.4 and Treecc 0.3.0.
- 2005: GNU DotGNU news records Portable.NET 0.6.12 and TreeCC 0.3.6.
- 2009: The published treecc manual HTML was generated from its Texinfo source.
- 2012: GNU states the DotGNU project was decommissioned except for libjit.

### Related projects

- treecc was related to DotGNU Portable.NET, pnetC, pnetlib, and libjit in the old GNU/DotGNU stack.
- Conceptually it sits near lex/yacc-style compiler tools, but focuses on tree-building and tree-walking rather than lexical analysis or parsing.

### ソース

- <https://www.dotgnu.org/pnet-git.html>
- <https://www.gnu.org/software/dotgnu/>
- <https://www.gnu.org/software/dotgnu/treecc/treecc.html>
- <https://www.gnu.org/software/dotgnu/treecc/treecc_1.html>
- <https://www.gnu.org/software/dotgnu/treecc/treecc_3.html>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

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

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** treecc
- **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

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

- MacPorts - treecc: normalized package name match | MacPorts ports tree: devel/treecc/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.
- [Language runtime packages](https://www.automicvault.com/ja/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [autogen](https://www.automicvault.com/ja/pkg/brew/autogen/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, gnu.
- [gperf](https://www.automicvault.com/ja/pkg/brew/gperf/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, gnu.
- [configen](https://www.automicvault.com/ja/pkg/brew/configen/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [counterfeiter](https://www.automicvault.com/ja/pkg/brew/counterfeiter/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [cproto](https://www.automicvault.com/ja/pkg/brew/cproto/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [crcany](https://www.automicvault.com/ja/pkg/brew/crcany/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [create-api](https://www.automicvault.com/ja/pkg/brew/create-api/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [dhall-bash](https://www.automicvault.com/ja/pkg/brew/dhall-bash/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [bison](https://www.automicvault.com/ja/pkg/brew/bison/) - Local package facts share a topical domain. Shared terms: cli, compiler, compiler-tools, developer, developer-tools.
- [source-highlight](https://www.automicvault.com/ja/pkg/brew/source-highlight/) - Local package facts share a topical domain. Shared terms: cli, code, developer, developer-tools, generation.

## Combined YAML source

View the package source record on GitHub. [combined/treecc.yml](https://github.com/automic-vault/db/blob/main/combined/treecc.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
