dtsparser

command module
v0.0.0-...-f04d09c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2015 License: MIT Imports: 4 Imported by: 0

README

dtsparser

Parsing typescript .d.ts file to generate JSON or Gopherjs package automatically! :)

The parser is created using PEG for Go.

This work is in progress(json output is now ok), I'll finish it soon.

Usage

Usage: ./dtsparser "path/to/target/file"

Json would be output to stdout.

ATTENTION

  1. This is not a complete .d.ts parser, just for easy coverting.

  2. Use UTF8 when parsing

  3. BOM is not supported

    if parsing not pass, try saving the file without UTF8 BOM first

  4. Anonymouse function in Object/Interface are not processed

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL