-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
#fill raises 'expected expression' error #178
Comments
Hmm, in what case exactly are you encountering the hard error? I have a few test cases for About it accepting any dummy expression, it's from a not-yet-implemented feature where you could provide a custom fill pattern. I should add an error to it while the feature isn't complete! |
I needed to include a dummy expression in this case: The error first occurred when I switched from an older version to v0.13.2. I found it odd that the error 'missing expression' was undocumented, so I tried adding |
@nicolandu could you please provide an asm file that reproduces the problem? I copied your example and removed |
This is what I had done (using Windows 10 and customasm 0.13.2):
EDIT: I don't know whether that changes anything, but this file was #included along with a few other files in my main program, if that can help. |
@nicolandu the program you've provided doesn't compile, 'nmi', 'reset', and 'irq' aren't defined in this file -- probably deferred resolution until they were included. Removing those commands does not result in a compilation error. |
Indeed, these reset/interrupt vectors are defined in the file which includes this one. I think the issue can be closed for the time being, as it seems to be okay on your side and I don't have access to the exact setup when the error occurred. I'll keep you updated in case any similar issues arise in the future. Thank you for your support! |
It seems that the problem doesn't appear in multi-line form: whereas
doesn't work (by itself), the equivalent snippet
does work (by itself). I wonder if that can be of any help. → Tested using customasm v0.13.5, both native and web. |
#fill
complains about there being a missing expression, but is satisfied with any dummy expression. This is contrary to the documentation (wiki), available at https://github.com/hlorenzi/customasm/wiki/Working-with-banks-%E2%80%94-%23bankdef%2C-%23bank#fill-attributeThe text was updated successfully, but these errors were encountered: