Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

IbrahimShamma99/tatum

Repository files navigation

JSON Parsing toolchain

Fun Project in the creation aims for generating JSON AST for formatting and infer TS interface out of AST

Inspired by TS Service

Usage

Example of usage:

const source =
 '{"name": "John Doe", "age": 16, "isStudent": true , "gradDate": null}'
const scanner = new Scanner(source)
scanner.scan()
const parser = new Parser(scanner.tokens)
parser.parse()
const type = new TSVisitor().execute(parser.tree)
// type = 'interface {name: string, age: number, isStudent: boolean, gradDate: null}'

TODO

Typescript Visitor

  • Create a scanner
  • Create a parser
  • Create a visitor
  • Accept inner objects
  • Scan arrays
  • Parse arrays
  • Accept Arrays

JSON Formatter

  • Visitor Setup

About

JSON Parsing toolchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /