-
Notifications
You must be signed in to change notification settings - Fork 52
Replace stb_c_lexer.h with a custom Lexer written from scratch in Crust #70
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
Conversation
Negative literals are achieved through Op::Negate
Tried it, seems to work fine. How "historically accurate" are we aiming for a language to be? Hex literals are nice to have for example, even if the original didn't have them. |
I actually don't know yet... My plan was to implement full set of described B features, but with the C lexer (since stb_c_lexer.h was a C lexer) and then go over the entire codebase and make it historically accurate as much as possible given the targets and the code we already have. Something like that. |
build/b -run -o build/tests/inc_dec tests/inc_dec.b ./std/test.b seems off |
that might be in the previous thing but we're paying more attention to the tests for this |
Hm... Don't see any problems. That's literally how Post/Pre-increments work. |
looked off to us because x is set to 3 then incremented twice |
im prolly just being dumb tho |
(blocking #69) |
Alright, I see no objections. Merging. |
@rexim looks great! Storing the input path and the Token enum make it a lot more ergonomic. I have some tweaks I noticed which I'll submit a PR for. |
@yui-915 @deniska @mikmart @nullnominal let me know if you see any problems
Closes #64