Skip to content

Change number parser for json to reuse same parser as lexer#534

Open
s-hadinger wants to merge 1 commit into
berry-lang:masterfrom
s-hadinger:json_parser_for_int
Open

Change number parser for json to reuse same parser as lexer#534
s-hadinger wants to merge 1 commit into
berry-lang:masterfrom
s-hadinger:json_parser_for_int

Conversation

@s-hadinger

Copy link
Copy Markdown
Contributor

Now json.load uses the same parser as the Berry lexer, but adds a layer to enforce JSON syntax. Ex: +42, .45, 0x12 are valid numbers in Berry but not valid JSON numbers.

JSON checker done with the help of claude.ai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant