Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid parsing of string operand when defining method body from source string. #135

Open
GoogleCodeExporter opened this issue Mar 13, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
Adding the method body by defining the assembly source fully as a string where 
opcode's operand is a string with spaces. For example:

 pushstring abra kadabra

generate an error "has incorrect number of operands, ...".

What is the expected output? What do you see instead?
In this case, anly 2 tokens should be parsed, 'pushstring' and 'abra kadabra'.

What version of the product are you using? On what operating system?
FLash CS6, win 7 x64

Please provide any additional information below.
So, in function Asm.convert(), I've replaced following line 
  var rawParams:Array = token.value.split(SINGLE_SPACE);
with
  var rawParams:Array = splitParams( token.value );

and created private method "splitParams". Now one can write operand like this:
  pushstring "abra kadabra"

Modified Asm.as file in attachment.


Original issue reported on code.google.com by [email protected] on 6 Jan 2013 at 12:55

Attachments:

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

No branches or pull requests

1 participant