forked from xxq250/Nasal-Interpreter
🚀 change indentation of nasal_ast::print & add new function
`nasal_ast::tree`.
This commit is contained in:
+1
-1
@@ -99,7 +99,7 @@ private:
|
||||
nasal_ast ret_expr();
|
||||
public:
|
||||
nasal_parse(nasal_err& e):ptr(0),in_func(0),in_loop(0),tokens(nullptr),nerr(e){}
|
||||
void print(){root.print(0);}
|
||||
void print(){root.tree();}
|
||||
void compile(const nasal_lexer&);
|
||||
nasal_ast& ast(){return root;}
|
||||
const nasal_ast& ast() const {return root;}
|
||||
|
||||
Reference in New Issue
Block a user