ruby-ir 0.0.1

Intermediate Representation for Ruby code
Documentation
  • Coverage
  • 100%
    175 out of 175 items documented0 out of 56 items with examples
  • Size
  • Source code size: 53.45 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.99 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 39s Average build duration of successful builds.
  • all releases: 37s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • fqq

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 ruby_ir::*;

// Create IR nodes
let expression = Expression::Constant(Constant::Integer(42));

// Traverse and manipulate IR
let mut visitor = MyVisitor::new();
visitor.visit_expression(&expression);

License

MIT OR Apache-2.0