2023-10-17 18:30:16 +00:00
|
|
|
//! # The Abstract Syntax Tree
|
2024-03-01 02:41:07 +00:00
|
|
|
//! Contains definitions of Conlang AST Nodes.
|
2023-10-17 18:30:16 +00:00
|
|
|
//!
|
2024-01-21 11:32:18 +00:00
|
|
|
//! # Notable nodes
|
|
|
|
//! - [Item] and [ItemKind]: Top-level constructs
|
|
|
|
//! - [Stmt] and [StmtKind]: Statements
|
|
|
|
//! - [Expr] and [ExprKind]: Expressions
|
|
|
|
//! - [Assign], [Binary], and [Unary] expressions
|
|
|
|
//! - [AssignKind], [BinaryKind], and [UnaryKind] operators
|
|
|
|
//! - [Ty] and [TyKind]: Type qualifiers
|
|
|
|
//! - [Path]: Path expressions
|
2024-03-01 03:04:45 +00:00
|
|
|
#![warn(clippy::all)]
|
2024-03-01 01:49:50 +00:00
|
|
|
#![feature(decl_macro)]
|
|
|
|
|
2024-04-19 02:31:46 +00:00
|
|
|
pub use ast::*;
|
2024-02-28 02:41:15 +00:00
|
|
|
|
2024-04-19 02:31:46 +00:00
|
|
|
pub mod ast;
|
2024-01-21 11:32:18 +00:00
|
|
|
pub mod ast_impl;
|
2024-04-19 08:21:07 +00:00
|
|
|
pub mod ast_visitor;
|
|
|
|
pub mod desugar;
|
2024-03-01 08:44:35 +00:00
|
|
|
pub mod format;
|