AST - Made statement nodes visible inside a program node

This commit is contained in:
Emmanuel BENOîT 2022-12-31 14:45:35 +01:00
parent f17cafd910
commit 402e0a10d9

View file

@ -6,7 +6,7 @@ use crate::tokens::Token;
/// The AST node for the program
#[derive(Default, Debug, Clone)]
pub struct ProgramNode(Vec<StmtNode>);
pub struct ProgramNode(pub Vec<StmtNode>);
/// An AST node that represents a statement.
#[derive(Debug, Clone)]