Skip to main content

Crate microcad_lang

Crate microcad_lang 

Source
Expand description

Processing of µcad source code.

This module includes all components to parse, resolve and evaluate µcad code and diagnose errors.

  • Load and parse source files in [mod@parse] and [syntax]
  • Resolve parsed sources in resolve
  • Evaluate resolved sources in eval
  • Diagnose any evaluation errors in [diag]

The syntax definitions and parser of µcad can be found here.

Good starting point to understand how µcad syntax works: [syntax::SourceFile::load()] loads a µcad source file.

Modules§

builtin
Builtin module
doc
Doc trait.
eval
Evaluation of parsed content.
lower
Lowering compile step
model
Model tree module
render
Model methods and trait implementations for rendering.
resolve
Single symbol resolving
symbol
µcad symbol tree.
ty
µcad syntax elements of types
value
Evaluation entities.

Macros§

argument
Shortcut to create a argument value
create_tuple
Create a Tuple from items
create_tuple_value
Create a Value::Tuple from items
eval_todo
Like todo!() but within a evaluation context
parameter
Shortcut to create a ParameterValue
property
Create tuple of stringified Identifier and a Value