Skip to main content

Crate tx3_lang

Crate tx3_lang 

Source
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();

Modules§

analyzing
Semantic analysis of the Tx3 language.
ast
The Tx3 language abstract syntax tree (AST).
cardano
lowering
Lowers the Tx3 language to the intermediate representation.
parsing
Parses the Tx3 language.

Macros§

include_tx3_build

Structs§

Workspace

Enums§

Error