-
Notifications
You must be signed in to change notification settings - Fork 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
fixes #34; Remove number and string literal suffixes #36
Conversation
doc/nif-spec.md
Outdated
@@ -194,13 +194,15 @@ Grammar: | |||
|
|||
``` | |||
Digit ::= [0-9] | |||
NumberSuffix ::= [a-z]+ [0-9a-z]* # suffixes can only contain lowercase letters | |||
NumberSuffix ::= '"' [a-z]+ [0-9a-z]* '"' # suffixes can only contain lowercase letters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NumberSuffix can only be u
for "unsigned", nothing else exists, the suf
tree is not part of the lexing step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the suf tree is not part of the lexing step.
What does this mean? Do you mean the suf tree is handled by nifc/gear2/...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eh, I cannot compile gear2
nim c -r nif/src/gear2/bridge.nim
Error: not all cases are covered; missing: {nkOpenSym}
Error: redefinition of 'TypeOf2'; previous declaration here: /home/wind/defs/Nim/nif/src/gear2/tags.nim(623, 3)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have fixed gear2/gen2nif
. gear2/genToNim
seems to be incomplete.
src/nifc/nifc_model.nim
Outdated
let progress = parse(r, d[], m, currentInfo) | ||
if not progress: break | ||
|
||
if kind == SufC: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason for this special logic here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I can let codegen handle SufC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly.
Ok, taking over from here. |
fixes #34
nif sample output
nifbuilder sample output
nifreader sample