X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=lexer.h;h=83cb62470dc53f79a4da813ae1177f7f91091d80;hb=0367a6175d1cf265bec9cdc4a8a8d80f81a7e2ef;hp=71ff198eed024b66c1932830d26148cd45e0d514;hpb=428453a132f4099d1ff8f61598166bff9d1d3bb4;p=xonotic%2Fgmqcc.git diff --git a/lexer.h b/lexer.h index 71ff198..83cb624 100644 --- a/lexer.h +++ b/lexer.h @@ -75,6 +75,8 @@ enum { TOKEN_ATTRIBUTE_CLOSE, /* ]] */ TOKEN_VA_ARGS, /* for the ftepp only */ + TOKEN_VA_ARGS_ARRAY, /* for the ftepp only */ + TOKEN_VA_COUNT, /* to get the count of vaargs */ TOKEN_STRINGCONST, /* not the typename but an actual "string" */ TOKEN_CHARCONST, @@ -183,6 +185,7 @@ static const oper_info c_operators[] = { { "%", 2, opid1('%'), ASSOC_LEFT, 13, 0 }, { "+", 2, opid1('+'), ASSOC_LEFT, 12, 0 }, + { "**", 2, opid2('*', '*'), ASSOC_RIGHT, 12, 0 }, { "-", 2, opid1('-'), ASSOC_LEFT, 12, 0 }, { "<<", 2, opid2('<','<'), ASSOC_LEFT, 11, 0 }, @@ -190,6 +193,7 @@ static const oper_info c_operators[] = { { "<", 2, opid1('<'), ASSOC_LEFT, 10, 0 }, { ">", 2, opid1('>'), ASSOC_LEFT, 10, 0 }, + { "<=>", 2, opid3('<','=','>'), ASSOC_LEFT, 10, 0 }, { "<=", 2, opid2('<','='), ASSOC_LEFT, 10, 0 }, { ">=", 2, opid2('>','='), ASSOC_LEFT, 10, 0 },