by Professor Hastig » Wed Oct 04, 2023 12:09 am
RicardoLuis0 wrote: ↑Thu Jul 06, 2023 12:26 pm
phantombeta wrote: ↑Wed Jul 05, 2023 8:26 pm
x !is y or
x is not y
both of those would require significant changes, due to how zscript parses operations (
isnot wouldn't require them -- it follow the same rules as any other operation like
is)
Actually, they wouldn't require much of a change at all. Have you seen how ZScript does 'static const'?
All it does is combine both tokens to one before passing it to the grammar parser, so you could do the same with '!is'.
[quote=RicardoLuis0 post_id=1242573 time=1688667978 user_id=27040]
[quote=phantombeta post_id=1242545 time=1688610412 user_id=8451]
[c]x !is y[/c] or [c]x is not y[/c]
[/quote]
both of those would require significant changes, due to how zscript parses operations ([c]isnot[/c] wouldn't require them -- it follow the same rules as any other operation like [c]is[/c])
[/quote]
Actually, they wouldn't require much of a change at all. Have you seen how ZScript does 'static const'?
All it does is combine both tokens to one before passing it to the grammar parser, so you could do the same with '!is'.