Metadata-Version: 2.4
Name: json-parser-cli
Version: 0.1.0
Summary: A JSON parser and CLI tool (learning purpose)
Project-URL: Repository, https://github.com/Anand-0037/json-parser
Project-URL: Issues, https://github.com/Anand-0037/json-parser/issues
Author-email: Anand Vashishtha <anandcollege07@gmail.com>
License: MIT
License-File: LICENSE.md
Keywords: cli,compiler,json,lexer,parser
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# json-parser
A cli tool for lexical and syntactical analysis. It parses json files.
## [PyPI package](https://pypi.org/project/json-parser-cli/)

---

## 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](https://pypi.org/project/json-parser-cli/)
- No runtime dependencies required.

## Installation
```bash
pip install json-parser-cli
```

## Learnings
How compiler works

1. **Lexer.py** --> Convert text into tokens.
2. **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.
```bash
json-parser <file_name.json>
```

<!-- 
### For my testing
```bash
python3 -m json_parser.test_runner
``` -->