A simple JSON parser application to demonstrate the Lexical and Syntax analysis stages of compilers
Run:
go install
Usage:
json-parser <filename> [flags]
For a list of available flags and examples, run:
json-parser --help
Usage:
json-parser.exe <filename> [flags]
For a list of available options, run:
json-parser.exe --help
NOTE:
- The output 'token' type from the lexer (when the -l flag is passed) consists of two fields - the token value(the actual token) and its position in the JSON string.
- Two test JSON files exist in the directory. You can add any JSON file as you see fit.