Expand description
§Frut Library
A no_std library for parsing, analyzing, and executing the Frut programming language. This library provides the core functionality for lexing, parsing, semantic analysis, and interpretation/compilation of Frut code.
§Features
- No-std compatible (uses only core and alloc)
- Modular architecture for extensibility
- Support for both interpretation and compilation workflows in the future
Re-exports§
pub use ast::*;pub use errors::*;pub use lexer::*;pub use parser::*;pub use semantic::*;pub use types::*;pub use value::*;pub use primitives::*;
Modules§
- ast
- Abstract Syntax Tree (AST) definitions for the Frut
- errors
- Error system for the Frut
- lexer
- Lexical analyzer for the Frut
- parser
- Parser for the Frut
- primitives
- semantic
- Semantic analyzer for the Frut
- types
- Type system for the Frut
- value
- Runtime value system for the Frut
Structs§
- File
- Represents a source file provided to the core (can be in-memory or from disk)
- Parse
Project Result - Result of parsing multiple files
- Project
- A parsed project consisting of multiple files
Constants§
- VERSION
- Version information
Functions§
- analyze_
project - Run semantic analysis across all files in the project.
- parse_
code - Simple parsing code
- parse_
files - Parse multiple files and return a project with per-file ASTs and aggregated errors