All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.relogiclabs.json.schema.internal.grammar.JsonLexer.g4 Maven / Gradle / Ivy

Go to download

The New JSON Schema prioritizes simplicity, conciseness, and readability, making it user-friendly and accessible without the need for extensive prior knowledge. It offers efficient read-write facilities, precise JSON document definition through various data types and functions, and extensibility to meet modern web service diverse requirements.

There is a newer version: 1.12.1
Show newest version
lexer grammar JsonLexer;

TRUE : 'true';
FALSE : 'false';
NULL : 'null';
LBRACKET : '[';
RBRACKET : ']';
LBRACE : '{';
RBRACE : '}';
COMMA : ',';
COLON : ':';

STRING : '"' (ESCAPE | SAFECODEPOINT)* '"';
fragment ESCAPE : '\\' ( ["\\/bfnrt] | UNICODE);
fragment UNICODE : 'u' HEXDIGIT HEXDIGIT HEXDIGIT HEXDIGIT;
fragment HEXDIGIT : [0-9a-fA-F];
fragment SAFECODEPOINT : ~["\\\u0000-\u001F];

INTEGER : '-' ? INTDIGIT;
FLOAT : INTEGER ('.' DIGIT+);
DOUBLE : INTEGER ('.' DIGIT+)? EXPONENT;

fragment INTDIGIT : '0' | [1-9] DIGIT*;
fragment EXPONENT : [eE] [+\-]? DIGIT+;
fragment DIGIT : [0-9];

WHITE_SPACE : [\n\r\t ]+ -> skip;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy