SpookyFM / hscript

Automatically exported from code.google.com/p/hscript
0 stars 0 forks source link

as3 source code generation fails on Parser.hx #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Haxe seems to fail to generate code when there is a break in a switch() 
statement, but removing that break changes the behavior of the code (it seems 
that the "break" is stopping the iteration that is external to the switch)

Example (taken from Parser.hx):

switch( tk ) {
    case TComma:
    case TPClose: break; //code generation will fail on this line
    default: unexpected(tk);
}

Original issue reported on code.google.com by federico...@gmail.com on 22 May 2012 at 7:52

GoogleCodeExporter commented 9 years ago
I tried to reproduce the code generation error creating a simpler case but was 
unable to..

Original comment by federico...@gmail.com on 22 May 2012 at 8:15

GoogleCodeExporter commented 9 years ago

Original comment by ncanna...@gmail.com on 24 May 2012 at 9:50