Skip to content

sinsong/JsonParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JsonParser

C++

Hand-made json parser, made with love by literal kernel.

Directory hierarchy is inspired by clang. Source code are inspired by dragonbook.

  • lexer - scaner
  • parser - recursive-descent parsing

directory hierarchy

include - include path
lib     - source
test    - test program source
json    - draft

test

lexer  - lexer tester
tryrun - test if parser work
data.json - test data

build

to build is simple, just use CMake

$ cmake -S . -B ./build

then start build

$ cmake --build ./build

enjoy!