CORE_Static
This commit is contained in:
@@ -15,7 +15,7 @@ for i in meta.token_simple_expr:
|
||||
print(f""" {{{{}}, "{i[0].upper()}"_s, TK_{i[0]}, {int(i[2]&meta.BINARY_EXPR>0)}, {int(i[2]&meta.UNARY_EXPR>0)}}},""")
|
||||
print("};")
|
||||
|
||||
print("""function Operator_Info *
|
||||
print("""CORE_Static Operator_Info *
|
||||
get_operator_info(Token_Kind op){
|
||||
switch(op){""")
|
||||
|
||||
@@ -27,7 +27,7 @@ for i in meta.token_simple_expr:
|
||||
print(" default: {}\n }")
|
||||
print(" return 0;\n}")
|
||||
|
||||
print("""function Operator_Info *
|
||||
print("""CORE_Static Operator_Info *
|
||||
get_operator_info(Intern_String op){
|
||||
if(0){}""")
|
||||
|
||||
@@ -62,7 +62,7 @@ Operator_Info op_info_table[] = {
|
||||
{{}, "NEG"_s, TK_Neg, 0, 1},
|
||||
{{}, "NOT"_s, TK_Not, 0, 1},
|
||||
};
|
||||
function Operator_Info *
|
||||
CORE_Static Operator_Info *
|
||||
get_operator_info(Token_Kind op){
|
||||
switch(op){
|
||||
case TK_Mul: return op_info_table + 0;
|
||||
@@ -89,7 +89,7 @@ get_operator_info(Token_Kind op){
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
function Operator_Info *
|
||||
CORE_Static Operator_Info *
|
||||
get_operator_info(Intern_String op){
|
||||
if(0){}
|
||||
else if(op_info_table[0].op.str == op.str) return op_info_table + 0;
|
||||
|
||||
Reference in New Issue
Block a user