Skip to content

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

Description

@chermehdi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions