-
Notifications
You must be signed in to change notification settings - Fork 428
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
Implement postfix parsing #953
base: master
Are you sure you want to change the base?
Conversation
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.
Looks good. Waiting for the test and printer change.
src/reason_lexer.mll
Outdated
| postfix_chars | ||
{ | ||
let l = Lexing.lexeme lexbuf in | ||
POSTFIX (remove_numbers l, int_of_string (remove_chars l)) |
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.
Nit: instead of using two functions, is it possible to just do one pass and return both number part and string part?
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.
Will do
Thanks for the change! Btw #637 is pretty early. Let's see if people still want postfix... |
Added printer support also and tests. |
@chenglou This PR will be waiting patiently |
:+1 |
#637
Work in progress.
Changes:
50Cats
to
Cats 50
.Printing still needs to be done to finish this.