-
Notifications
You must be signed in to change notification settings - Fork 10
Display numbers in hex, binary, etc #5
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
Hi, thanks for the feedback. |
Yeah. Though I can't help but wonder what would happen if one treats the output format of a number a "sticky" property as values are passed through computation, with combining rules in the spirit of Go's untyped constants.
Then have rules that say which one wins in case of multiple conflicting ones; e.g.
(Instead of my invented Right one wins has the nice property that you can often arrow-up, Probably something like |
That would be ideal, but tough to implement as the parser has no concept of hex, binary or decimal, everything is a float in the end. I'm sure it's doable though. For example by lexing it first and checking the most common type of literal, since the lexer is aware of the type literal. I'll have to look into this some more, if you have any ideas I'd be glad to hear them. |
Hi. Nice project, love the programmer-friendly bit manipulation. However, this was a little disappointing:
I wish I could get the result out in bits/hex/etc.
The text was updated successfully, but these errors were encountered: