Ruby IR
Intermediate Representation for Ruby code in Rusty Ruby.
Overview
This crate provides the intermediate representation (IR) for Ruby code compilation in the Rusty Ruby project. It defines the data structures and traversal utilities for representing Ruby code in a form suitable for optimization and code generation.
Features
- Abstract syntax tree (AST) representation
- Traversal utilities for IR manipulation
- Serialization support for IR objects
- Integration with other Rusty Ruby components
Usage
use *;
// Create IR nodes
let expression = Constant;
// Traverse and manipulate IR
let mut visitor = new;
visitor.visit_expression;
License
MIT OR Apache-2.0