Skip to content

Json parser CLI, using compilers principles and techniques that translates to js objects and .yml files

License

Notifications You must be signed in to change notification settings

KevinDaSilvaS/sparser-invaders

Repository files navigation

sparser-invaders

A haskell CLI app to parse json files and translate them into js objects and/or yml files using compiler techniques and tools

[LEXICAL ANALYSIS] - Tokenizing symbols in

OpenObjToken | CloseObjToken | IdentifierKeyToken | StringToken | NumberToken | NullToken | OpenArrayToken | CloseArrayToken | BooleanToken | SeparatorToken | Empty --end of file

[SINTATIC ANALYSIS] - Using free context grammar to check if tokens are in the right place

A -> [C] | {K} | {} | []
C -> TEC | T
K -> "key":TEK | "key":T
E -> ,
T -> "str" | 0-9 | 0.0-9.9 | A | true | false | null

[SEMANTIC ANALYSIS] - As warnings to inform the user of duplicated keys in the same scope

[CODE GEN] - From the tokens IR is built and soon transformed in a yml and/ or js file

About

Json parser CLI, using compilers principles and techniques that translates to js objects and .yml files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published