treecc
« Back to VersTracker
Description:
Aspect-oriented approach to writing compilers
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: compiler aspect-oriented code-generation development
Install: brew install treecc
About:
Treecc is a specialized tool designed to manage the implementation of tree walking and traversal in compilers and interpreters. It uses an aspect-oriented approach to separate the tree traversal logic from the operations performed on the nodes, simplifying the development of complex code generators.
Key Features:
  • Aspect-oriented code generation
  • Automatic tree traversal logic
  • Separation of concerns for compiler design
  • Supports multiple output languages (C/C++)
Use Cases:
  • Building the code generation phase of a compiler
  • Implementing interpreters requiring tree walking
  • Managing complex visitor patterns in AST processing
Alternatives:
  • ANTLR – ANTLR is a full parser generator, whereas Treecc specifically focuses on the tree traversal aspect.
  • Manual Visitor Pattern – Treecc automates the boilerplate code required for the visitor pattern.
Version History
Detected Version Rev Change Commit