🚀 change indentation of nasal_ast::print & add new function

`nasal_ast::tree`.
This commit is contained in:
ValKmjolnir
2022-08-22 22:35:53 +08:00
parent da8aa4744e
commit 987d3ce9e2
2 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -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;}