mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
array-subscript operator entries
This commit is contained in:
parent
1869440fd9
commit
4977f605d4
1 changed files with 2 additions and 0 deletions
2
lexer.h
2
lexer.h
|
@ -162,6 +162,7 @@ static const oper_info c_operators[] = {
|
|||
|
||||
{ ".", 2, opid1('.'), ASSOC_LEFT, 15, 0 },
|
||||
{ "(", 0, opid1('('), ASSOC_LEFT, 15, 0 }, /* function call */
|
||||
{ "[", 0, opid1('['), ASSOC_LEFT, 15, 0 }, /* array subscript */
|
||||
|
||||
{ "!", 1, opid2('!', 'P'), ASSOC_RIGHT, 14, OP_PREFIX },
|
||||
{ "~", 1, opid2('~', 'P'), ASSOC_RIGHT, 14, OP_PREFIX },
|
||||
|
@ -222,6 +223,7 @@ static const oper_info qcc_operators[] = {
|
|||
|
||||
{ ".", 2, opid1('.'), ASSOC_LEFT, 15, 0 },
|
||||
{ "(", 0, opid1('('), ASSOC_LEFT, 15, 0 }, /* function call */
|
||||
{ "[", 0, opid1('['), ASSOC_LEFT, 15, 0 }, /* array subscript */
|
||||
|
||||
{ "!", 1, opid2('!', 'P'), ASSOC_RIGHT, 14, OP_PREFIX },
|
||||
{ "+", 1, opid2('+','P'), ASSOC_RIGHT, 14, OP_PREFIX },
|
||||
|
|
Loading…
Reference in a new issue