Ported unicode conversions

This commit is contained in:
Krzosa Karol
2022-06-15 10:51:45 +02:00
parent aab89ffada
commit cdeebfb8f9
7 changed files with 75 additions and 32 deletions

View File

@@ -26,6 +26,7 @@ enum Ast_Kind: U32{
AST_LENGTH_OF,
AST_ALIGN_OF,
AST_BREAK,
AST_COMPOUND,
AST_TYPE,
AST_VAR,
@@ -146,6 +147,7 @@ struct Ast_If: Ast{
};
struct Ast_Pass: Ast{};
struct Ast_Break: Ast{};
struct Ast_For: Ast{
Ast_Expr *init;
@@ -357,6 +359,12 @@ ast_pass(Token *pos){
return result;
}
function Ast_Break *
ast_break(Token *pos){
AST_NEW(Break, BREAK, pos, AST_STMT);
return result;
}
function Ast_Return *
ast_return(Token *pos, Ast_Expr *expr){
AST_NEW(Return, RETURN, pos, AST_STMT);