]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.h
Starting expression parsing
[xonotic/gmqcc.git] / lexer.h
diff --git a/lexer.h b/lexer.h
index 8ccd2cf261d6a8dcb7d41d316cf0434fafc20a77..8715b652e83ea18edc6aacef560ea6877328efa4 100644 (file)
--- a/lexer.h
+++ b/lexer.h
@@ -183,6 +183,7 @@ static const oper_info operators[] = {
     { "^=",  opid2('^','='),     ASSOC_RIGHT, 2,  0 },
     { "|=",  opid2('|','='),     ASSOC_RIGHT, 2,  0 },
 };
+const size_t operator_count = (sizeof(operators) / sizeof(operators[0]));
 
 typedef struct
 {