Cleanup
This commit is contained in:
12
new_ast.cpp
12
new_ast.cpp
@@ -271,22 +271,22 @@ struct Ast_Package:Ast{
|
||||
result->id = ++pctx->unique_ids
|
||||
|
||||
function Ast_Atom *
|
||||
ast_str(Token *pos, Intern_String string, Ast_Flag flags = 0){
|
||||
AST_NEW(Atom, STR, pos, AST_ATOM | flags);
|
||||
ast_str(Token *pos, Intern_String string){
|
||||
AST_NEW(Atom, STR, pos, AST_ATOM | AST_EXPR);
|
||||
result->intern_val = string;
|
||||
return result;
|
||||
}
|
||||
|
||||
function Ast_Atom *
|
||||
ast_ident(Token *pos, Intern_String string, Ast_Flag flags = 0){
|
||||
AST_NEW(Atom, IDENT, pos, AST_ATOM | flags);
|
||||
ast_ident(Token *pos, Intern_String string){
|
||||
AST_NEW(Atom, IDENT, pos, AST_ATOM | AST_EXPR);
|
||||
result->intern_val = string;
|
||||
return result;
|
||||
}
|
||||
|
||||
function Ast_Atom *
|
||||
ast_int(Token *pos, S64 integer, Ast_Flag flags = 0){
|
||||
AST_NEW(Atom, INT, pos, AST_ATOM | flags);
|
||||
ast_int(Token *pos, S64 integer){
|
||||
AST_NEW(Atom, INT, pos, AST_ATOM | AST_EXPR);
|
||||
result->int_val = integer;
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user