-
Notifications
You must be signed in to change notification settings - Fork 18
Fails to parse the SPI example #7
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
Comments
If someone in Adafruit Circuit Python community know how to setup a way to automate testing, I believe this library could benefit from it. It is pure software, no hardware involved. You can have various piece of assembly code and you know exactly what binary result you expect. I did manually run this kind of test in this PR comment: #5 (comment) This would permit to detect regression and make sure that code that "assemble" in the past still work in the future. |
I was hoping to make decision to omit support for commas. I don't like entirely optional portions of a language. There should only be one canonical form. Perhaps we should simply add a friendly exception for it. |
All of the following now parse as `["mov", "pins", "1"]` and assemble to 0x6001: ``` out pins , 1 ; out pins, 1 ; out pins,1 ; out pins ,1 ; out pins 1 ; ``` This brings pioasm closer to what upstream's examples show Closes: adafruit#7
The SPI example has this code:
It fails to parse, because it searches for
"pins,"
in IN_SOURCES and OUT_DESTINATIONS (note the trailing,
).I put a hacky fix in and it did assemble, though there are remaining limitations in the core before it can be used:
I'm totally sure this is not the right fix so I'm entering this as an issue instead of as a PR.
The text was updated successfully, but these errors were encountered: