A JSON parser and CLI tool (learning purpose)
Project description
json-parser
A cli tool for lexical and syntactical analysis. It parses json files.
PyPI package
Features
- 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.
Installation
pip install json-parser-cli
Learnings
How compiler works
- Lexer.py --> Convert text into tokens.
- Parser --> Convert tokens to data using recursive descent parsing.
Json features supported
- Objects, Arrays.
- Strings, Numbers, Booleans.
- Null, nested structures, etc.
- comments,
How to use
use json-parser command to validate json files.
json-parser <file_name.json>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
json_parser_cli-0.1.0.tar.gz
(25.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file json_parser_cli-0.1.0.tar.gz.
File metadata
- Download URL: json_parser_cli-0.1.0.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f0c4e8c5a7a454b2ab3d976d0f8eae3daeee71a2392f6752e901ddedf9a26af
|
|
| MD5 |
9330dbbec75e6d036d459ba348fc8954
|
|
| BLAKE2b-256 |
7c484552fe8a6303207985d0ec103b3a3b19ef333718c137457c7782fe9d47f1
|
File details
Details for the file json_parser_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: json_parser_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2091a71f3358ba0a45659deea7f87c5aa6b05169bf2541b88315e61ef675cd7e
|
|
| MD5 |
7eb68a00b2a6a67499bf64d4c61c8aff
|
|
| BLAKE2b-256 |
bfc21a7d8675e1832061bec9af7917c96aa85e68e6e9712a490a6a7e5cfcf1aa
|