Work in progress.
Basic token definitions and lexer skeleton have been added.
Basic JSON symbol tokenization is now supported.
MoonBit project initialization and local compilation are completed.
String tokenization is now supported.
Integer number tokenization has been added.
A functional JSON lexer is now implemented.
Basic JSON AST support has been added.
Initial JSON object parsing is now supported.
moonbit-json
A lightweight JSON parser written in MoonBit.
Status
Work in progress. Basic token definitions and lexer skeleton have been added. Basic JSON symbol tokenization is now supported. MoonBit project initialization and local compilation are completed. String tokenization is now supported. Integer number tokenization has been added. A functional JSON lexer is now implemented. Basic JSON AST support has been added. Initial JSON object parsing is now supported.
Current Features
Supported JSON Tokens
{}:,truefalsenullLexer Features
Parser Features
Example
Input:
{ “user”: { “name”: “abc”, “age”: 18 }, “ok”: true }
Output:
{user: {name: JString(abc), age: JNumber(18)}, ok: JBool(true)}