-
Notifications
You must be signed in to change notification settings - Fork 88
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
EBNF Grammar #167
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to write out the grammar of the assembly syntax in EBNF. This might help fixing bugs in the assembler, while also stating a formal syntax.
I am probably missing some things and also have some notes:
instruction per line
this is perfectly valid syntax? would enforcing a instruction per line be a bad thing?
character literals
#164
binary literal integers
#165
octal literal integers
#166
escape sequences
something like C escape sequences?
conclusion
Would be nice to model the parser of the assembler to a documented syntax.
Grammar
The text was updated successfully, but these errors were encountered: