VilleKrumlinde/zgameeditor

XOR

Closed this issue · 4 comments

Originally requested by: Kjell - http://www.emix8.org/forum/viewtopic.php?t=634

Purpose of code changes on this branch:
Ability to use ^ for binary XOR

I figured to attempt to become familiar with the code base I would start with 
something simple like implementing XOR. It's still not working - however, I 
have a feeling I'm missing something small. My changes may not even be right 
but I'll post them anyways.

I get "Syntax not supported" in the IDE and if I attempt to compile I get:

---------------------------
pong.zgeproj - ZGameEditor 2.0.1b
---------------------------
Error in expression for node: ZExpression 
Syntax not supported 
---------------------------
OK   
---------------------------

Attached is a diff/patch file.

Original issue reported on code.google.com by adam...@datanethost.net on 3 Dec 2011 at 5:54

Attachments:

Good work, I'll commit this later!

Original comment by ville.kr...@gmail.com on 3 Dec 2011 at 10:10

Probably just something small missing, because the code looks correct as far I 
as can tell at a quick glance.

Original comment by ville.kr...@gmail.com on 3 Dec 2011 at 10:11

Original comment by ville.kr...@gmail.com on 3 Dec 2011 at 10:12

  • Changed state: Accepted
The compiler syntax is defined in zc.atg. Using m.bat in Compiler folder will 
transform zc.atg to Zc.pas which is the actual script parser. So I added the 
xor-syntax there and now it works!

I did not commit the synedit changes because they seemed redundant, correct me 
if I'm wrong.

Original comment by ville.kr...@gmail.com on 3 Dec 2011 at 3:56

  • Changed state: Fixed