Skip to content
This repository has been archived by the owner on Feb 12, 2018. It is now read-only.

Expressions of the form (A and *(b)) parse incorrectly #43

Open
madewokherd opened this issue Feb 17, 2012 · 0 comments
Open

Expressions of the form (A and *(b)) parse incorrectly #43

madewokherd opened this issue Feb 17, 2012 · 0 comments

Comments

@madewokherd
Copy link
Contributor

Given this testcase:

if ( 1 and *( 0 ) )
MsgBox, yes
else
MsgBox, no

the parser interprets the * as a binary multiplication operator, instead of a unary dereference. This eventually causes an exception due to the broken CodeDom tree that results:

Unhandled Exception: System.Exception: Top type can not be null
at IronAHK.Scripting.MethodWriter.ConditionalBox (System.Type Top) [0x00032] in /home/meh/source/ironahk/Scripting/Compiler/Emission/EmitVars.cs:161

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant