Skip to content
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

Add the ability to lex/parse other number formats #14

Open
chermehdi opened this issue Apr 15, 2021 · 0 comments
Open

Add the ability to lex/parse other number formats #14

chermehdi opened this issue Apr 15, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@chermehdi
Copy link
Owner

Comet only considers numbers to only be represented in decimal format, which is not realistic in a programming language.

We expect Comet to be able to lex and parse numbers of binary, hex, octal format as well:

var a = 0xcafebabe
var b = 0b10100000
var c = 012
@chermehdi chermehdi added enhancement New feature or request help wanted Extra attention is needed labels Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant