Merge pull request #383 from dbrotz/fix-380

Change the precedence of == to match the documentation
This commit is contained in:
Eldred Habert authored and GitHub committed 2019-08-29 17:14:05 +02:00
commit 9738c88f95
4 files changed
+13 -2

No files matched your search

+2 -2
View File
@@ -537,8 +537,8 @@ static void strsubUTF8(char *dest, const char *src, uint32_t pos, uint32_t len)
%token <tzString> T_STRING
%left <nConstValue> T_OP_LOGICNOT
%left <nConstValue> T_OP_LOGICOR T_OP_LOGICAND T_OP_LOGICEQU
%left <nConstValue> T_OP_LOGICGT T_OP_LOGICLT T_OP_LOGICGE T_OP_LOGICLE T_OP_LOGICNE
%left <nConstValue> T_OP_LOGICOR T_OP_LOGICAND
%left <nConstValue> T_OP_LOGICGT T_OP_LOGICLT T_OP_LOGICGE T_OP_LOGICLE T_OP_LOGICNE T_OP_LOGICEQU
%left <nConstValue> T_OP_ADD T_OP_SUB
%left <nConstValue> T_OP_OR T_OP_XOR T_OP_AND
%left <nConstValue> T_OP_SHL T_OP_SHR
+7
View File
@@ -0,0 +1,7 @@
print: MACRO
printv \1
printt "\n"
ENDM
print 1 == 1 || 1 == 2
print (1 == 1) || (1 == 2)
+2
View File
@@ -0,0 +1,2 @@
$1
$1
+2
View File
@@ -0,0 +1,2 @@
$1
$1