-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Apparently unable to handle parameter without preceeding whitespace #193
Comments
Minimal test case:
At first I assumed some token-for-token substitution was at play, like in #172, but assigning to a temporary variable (which fixes that bug) creates Exciting New Errors:
However, adding |
Can confirm, and not affected by Adding whitespace does fix, so seems an extra character is being pulled in for this specific case. |
Actually, this happens regardless of whether the glued token is 1 character or multiple:
This doesn't make any sense to me; in the |
Okay, I added some debug prints in certain spots and I think I've narrowed the issue to the token-for-token substitution. Specifically, Notably, the parser does correctly understand the glued parameter (as proven by |
This is part of a bigger issue with the current architecture: we need to have the token-walker be able to split and reinterpret tokens at parameter boundaries. I'm trying to work out a solution for this. |
for a bit of context, the arch i am working with allows you to set the condition mode separately from the opcode, and my plan was to parameterize the mode so that it could be set in an easily readable manner, such that
jeq
gets parsed asj{mode}
whereeq
is themode
, but customasm is apparently unable to handle parameters without preceding whitespace like this, and passesjeq
as themode
for some reasonthe relevant portion of code:
The text was updated successfully, but these errors were encountered: