Crate oxur_lang

Crate oxur_lang 

Source
Expand description

Oxur Language Processing

This crate handles the frontend of the Oxur compilation pipeline:

  • Stage 1: Parse (Oxur syntax → Surface Forms)
  • Stage 2: Expand (Surface Forms → Core Forms)

Core Forms are the stable intermediate representation (IR) that serves as the contract between the frontend (oxur-lang) and backend (oxur-comp).

Re-exports§

pub use core_forms::CoreForm;
pub use expander::Expander;
pub use parser::Parser;

Modules§

core_forms
Core Forms - The Intermediate Representation (IR)
expander
Stage 2: Expand
parser
Stage 1: Parse

Structs§

Location
Source location for error reporting
NodeId
Unique identifier for AST nodes across all compilation stages
SourceMap
Tracks AST transformations for error reporting
SourcePos
Source position in original Oxur code

Enums§

Error
Error types for language processing

Functions§

new_node_id
Generate a new unique NodeId

Type Aliases§

Result
Result type for language operations