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 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.
model
Model tree module
ord_map
Ordered Map
parse
Source code parsing
parser
µcad Code Parser
render
Model methods and trait implementations for rendering.
resolve
Single symbol resolving
symbol
µcad symbol tree.
syntax
µcad syntax elements.
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