Skip to main content

Crate ccalc_engine

Crate ccalc_engine 

Source
Expand description

§ccalc-engine

Core computation engine for ccalc.

This crate provides the language pipeline:

input string
    └─► tokenizer (parser::tokenize)
            └─► recursive-descent parser (parser::parse)  →  Stmt AST
                    └─► evaluator (eval::eval)  →  Value

§Modules

  • envEnv type, Value enum, workspace save/load
  • eval — AST types, evaluator, number formatters, Base
  • parser — tokenizer and recursive-descent parser, Stmt
  • exec — block/loop/function executor, script search path
  • io — file descriptor table for fopen/fclose/fgetl/fprintf

Modules§

env
Variable environment, Value type, and workspace persistence.
eval
AST node types (Expr, Op), evaluator, and number formatters.
exec
Block statement executor: loops, functions, run/source, search path management.
io
File I/O context (IoContext) for the REPL session.
parser
Tokenizer, recursive-descent parser, and Stmt AST.