8000 kataw/src at main · kataw/kataw · GitHub
[go: up one dir, main page]

Skip to content
7FFF

Latest commit

 

History

History

src

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Kataw toolchain

This files and folders contains the entire source for the Kataw source. It does parsing, linting, printing and can transform the CST tree in the same way as Babel.

Main API

Node

This is the simplest way of doing parsing from the command line. Linting, grammar checking are done automatically, but can be turned off.

kataw some.js --module --no-typecheck

Browser

Parsing:

// parse in module goal
kataw.parseModule(source, options);

// parse in script mode
kataw.parseScript(source, options);

Prettify:

// pretty print in module goal
kataw.prettyModule(source, options);

// pretty print parse in script mode
kataw.prettifyScript(source, options);
0