Parsing operator overloads
This commit is contained in:
@@ -4,6 +4,8 @@ thread_local B32 emit_line_directives;
|
||||
Allocator *bigint_allocator;
|
||||
global S64 bigint_allocation_count;
|
||||
|
||||
global Token token_null = {SAME_SCOPE};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Interns / keywords
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -32,6 +34,28 @@ Intern_String intern_it;
|
||||
Intern_String intern_strict;
|
||||
Intern_String intern_flag;
|
||||
|
||||
Intern_String op_add;
|
||||
Intern_String op_mul;
|
||||
Intern_String op_div;
|
||||
Intern_String op_sub;
|
||||
Intern_String op_and;
|
||||
Intern_String op_bitand;
|
||||
Intern_String op_or;
|
||||
Intern_String op_bitor;
|
||||
Intern_String op_xor;
|
||||
Intern_String op_equals;
|
||||
Intern_String op_not_equals;
|
||||
Intern_String op_lesser_then_or_equal;
|
||||
Intern_String op_greater_then_or_equal;
|
||||
Intern_String op_lesser_then;
|
||||
Intern_String op_greater_then;
|
||||
Intern_String op_left_shift;
|
||||
Intern_String op_right_shift;
|
||||
Intern_String op_not;
|
||||
Intern_String op_neg;
|
||||
Intern_String op_decrement;
|
||||
Intern_String op_increment;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Type globals
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user