Expand description
The Tx3 language
This crate provides the parser, analyzer and lowering logic for the Tx3 language.
§Parsing
let program = tx3_lang::parsing::parse_string("tx swap() {}").unwrap();§Analyzing
let mut program = tx3_lang::parsing::parse_string("tx swap() {}").unwrap();
tx3_lang::analyzing::analyze(&mut program).ok().unwrap();§Lowering
let mut program = tx3_lang::parsing::parse_string("tx swap() {}").unwrap();
tx3_lang::analyzing::analyze(&mut program).ok().unwrap();
let ir = tx3_lang::lowering::lower(&program, "swap").unwrap();Re-exports§
pub use applying::apply_args;pub use applying::apply_fees;pub use applying::apply_inputs;pub use applying::find_params;pub use applying::find_queries;pub use applying::reduce;
Modules§
- analyzing
- Semantic analysis of the Tx3 language.
- applying
- ast
- The Tx3 language abstract syntax tree (AST).
- cardano
- ir
- The Tx3 language intermediate representation (IR).
- loading
- lowering
- Lowers the Tx3 language to the intermediate representation.
- parsing
- Parses the Tx3 language.