Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NicolasLopes7/json-parser
✨ a simple json parser. compiler engineer wannabe. (WIP)
https://github.com/NicolasLopes7/json-parser
Last synced: 3 months ago
JSON representation
✨ a simple json parser. compiler engineer wannabe. (WIP)
- Host: GitHub
- URL: https://github.com/NicolasLopes7/json-parser
- Owner: NicolasLopes7
- Created: 2023-01-27T03:34:26.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-09T22:45:48.000Z (almost 2 years ago)
- Last Synced: 2024-06-30T16:51:19.938Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 29.3 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# json parser
This is a simple parser made in Typescript, and tested with Vitest. ✨## Steps
It has only two simple steps:
- The Lexer
- Split all the characters in tokens, and create literals in keywords.
- The Parser
- Creates an AST (Abstract Syntax Tree) with the tokens provided by the lexer
## How to use- Clone the Repo ```❯ git clone https://github.com/NicolasLopes7/json-parser```
- Go to the directory and install dependencies ```❯ cd json-parser && pnpm i```
- Run the project ```❯ pnpm start```
- If you want to run the tests ```❯ pnpm test```