A cli tool for lexical and syntactical analysis. It parses json files.
- Lexical analysis --> tokenize json input character by character.
- Parser --> Builds python objects fro tokens.
- CLI Interface --> Validating json files from cli.
- Error messages with line numbers
- include support for comments also. ('//' and '/* any content */')
- Uploaded on pypi PyPI package
- No runtime dependencies required.
pip install json-parser-cliuse json-parser command to validate json files.
json-parser <file_name.json>How compiler works
- Lexer.py --> Convert text into tokens.
- Parser --> Convert tokens to data using recursive descent parsing.
- Objects, Arrays.
- Strings, Numbers, Booleans.
- Null, nested structures, etc.
- comments,