Test cases are from coding challenges.
The largest JSON file that I could find is from here.
Install rust following the official instructions here.
Clone the repository and navigate to the project directory:
git clone https://github.com/howenyap/json-parser.git && cd json-parserBuild the project:
cargo build --releaseRun the project:
cargo run --release <file>If you'd like to see the lexed tokens, use the --verbose / -v flag to write them to tokens.txt:
cargo run --release <file> --verboseNote: When running the program on large files with the verbose flag, it may take a long time to write the tokens to file
Run the tests:
cargo test