Skip to content

Elyoussf/json_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Parser Written from Scratch (JSON to Go Struct)

Project Structure

Project Structure

The project consists of three main folders:

  1. lexer: Contains the lexer, which takes an input string and outputs a slice (array) of tokens based on JSON rules.
    The lexer tokenizes meaningful elements rather than every individual character.

  2. parser: Responsible for syntactic analysis.
    It uses simple loops and if-else logic to parse JSON quickly and map types to Go equivalents (e.g., nullnil).
    Note: This does not involve building an AST as compilers usually do.

  3. utils: Provides useful functions for type checking with Go's standard types.

The main.go file is the entry point for program execution.

Code explanation will be provided later.

About

Write on my own a json parser in go following no tuto thereby just a mess

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages