Skip to content

Commit d25a168

Browse files
committed
📝 chore: Add updated AST parent
1 parent b48e175 commit d25a168

File tree

1 file changed

+3
-8
lines changed
  • src/compiler/typesharp_ast

1 file changed

+3
-8
lines changed

‎src/compiler/typesharp_ast/ast.rs‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@ use super::types;
66
use crate::{ compiler::typesharp_lexer::token::Token };
77

88
pub struct AST {
9-
// name
10-
n: String,
11-
// // program type
12-
// t: ProgramType,
13-
// // Stack constants
14-
// s: Vec<ASTExpr>,
15-
// // Body
16-
// b: Vec<ASTNode>
9+
name: String,
10+
typ: ProgramType,
11+
body: Vec<ASTStatement>
1712
}
1813

1914
#[derive(Clone, PartialEq, Debug)]

0 commit comments

Comments
 (0)