length_of align_of size_of are no longer operators but function calls
This commit is contained in:
@@ -169,11 +169,11 @@ Intern_String keyword_switch;
|
||||
Intern_String keyword_break;
|
||||
Intern_String keyword_elif;
|
||||
Intern_String keyword_assert;
|
||||
Intern_String keyword_sizeof;
|
||||
Intern_String keyword_alignof;
|
||||
Intern_String keyword_lengthof;
|
||||
Intern_String keyword_enum;
|
||||
|
||||
Intern_String intern_sizeof;
|
||||
Intern_String intern_alignof;
|
||||
Intern_String intern_lengthof;
|
||||
Intern_String intern_void;
|
||||
Intern_String intern_foreign;
|
||||
Intern_String intern_it;
|
||||
@@ -226,9 +226,6 @@ lex_init(Allocator *token_string_arena, Allocator *map_allocator, Lexer *l){
|
||||
|
||||
keyword_struct= l->intern("struct"_s);
|
||||
keyword_union = l->intern("union"_s);
|
||||
keyword_sizeof = l->intern("size_of"_s);
|
||||
keyword_lengthof = l->intern("length_of"_s);
|
||||
keyword_alignof = l->intern("align_of"_s);
|
||||
keyword_true = l->intern("true"_s);
|
||||
keyword_default = l->intern("default"_s);
|
||||
keyword_break = l->intern("break"_s);
|
||||
@@ -245,6 +242,9 @@ lex_init(Allocator *token_string_arena, Allocator *map_allocator, Lexer *l){
|
||||
l->interns.first_keyword = keyword_struct.str;
|
||||
l->interns.last_keyword = keyword_enum.str;
|
||||
|
||||
intern_sizeof = l->intern("size_of"_s);
|
||||
intern_lengthof = l->intern("length_of"_s);
|
||||
intern_alignof = l->intern("align_of"_s);
|
||||
intern_foreign = intern_string(&l->interns, "foreign"_s);
|
||||
intern_strict = intern_string(&l->interns, "strict"_s);
|
||||
intern_void = intern_string(&l->interns, "void"_s);
|
||||
|
||||
Reference in New Issue
Block a user