Skip to content

Instantly share code, notes, and snippets.

@IQAndreas
Created July 23, 2012 13:27
Show Gist options
  • Save IQAndreas/3163586 to your computer and use it in GitHub Desktop.
Save IQAndreas/3163586 to your computer and use it in GitHub Desktop.
Difference between the FDT parser and the Flex Compiler creating unnecessary error message
package com.asm
{
public class Args
{
public static const REGISTER:String = "REGIS";
public static const CONSTANT:String = "CONST";
public static const ADDRESS:String = "ADDRS";
public static const DOUBLE_REGISTER:String = "2RGIS";
}; // Unexpected token ; at line 12 column 3.
}
package com.vm
{
import flash.utils.ByteArray;
internal function uintsToByteArray ( data:Vector.<uint> ) : ByteArray
{
var out:ByteArray = new ByteArray ();
out.length = data.length;
for ( var i:uint = 0; i < data.length; i ++ )
out.writeByte ( ( data [ i ] as int ) - 128 );
return out;
}; // Unexpected token ; at line 16 column 3.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment