Skip to content

Anand-0037/json-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-parser

A cli tool for lexical and syntactical analysis. It parses json files.


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

How to use

use json-parser command to validate json files.

json-parser <file_name.json>

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,

About

A cli tool for lexical and syntactical analysis. It parses json files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages