GP-0_emteere minor SleighEditor bug fix for @if "!=" comparison

This commit is contained in:
emteere 2020-11-03 18:13:34 -05:00
parent 3e5a244838
commit b966f85f76
2 changed files with 4 additions and 0 deletions

View File

@ -110,6 +110,9 @@ class SleighParsingTest {
@if defined(ENDIAN)
reg = tmp;
@endif
@if ENDIAN != "big"
reg = N;
@endif
}
Dest: loc is op=0 [ loc = inst_next; ] { export loc; }

View File

@ -49,6 +49,7 @@ IsDefined:
DefineTest:
( '(' test=DefineTest ')'
| symref=DefineSym OP_EQUAL value=(STRING|intvalue|ID)
| symref=DefineSym OP_NOTEQUAL value=(STRING|intvalue|ID)
| isdefined=IsDefined ) ( (OP_BOOL_AND andtest=DefineTest) | (OP_BOOL_OR ortest=DefineTest) )?
;