dawn.js

0.1.1 • Public • Published

dawn.js

General Transpiler implemented in JavaScript

dawn.js is a source to source compiler implemented in JavaScript(CoffeeScript)

NPM

npm install dawn.js

Built in Features

  • Lexical Parser
  • Syntax Parser (including AST)
  • Symbol Table Generator
  • Customizable Plugin System

Things available to do

  • Compile from one language to another language according to the grammar definition
  • Implement real autocompletion specific to scopes and objects in Web
  • Autocompletion between different languages (like working Javascript with JAVA in Android)
  • Accurate refactor
  • Handle files in complex structure easily
  • Implement amazing editing features form heavy weight editors (VisualStudio, IntellijIDEA...) in light weight editors (Web, SublimeText, Atom...)

Demo

Tutorial

  • Coming soon...

API Reference

  • Flow - the dawn.js plugin system

  • MixMap - a reference grid system

  • LexParser - a parser to tokenize the code script

  • BNFParser - generate structure from plain E-BNF definition

  • SyntaxParser - a parser to generate syntax tree from lex list

  • SymbolTable - a grid system to store specific data for syntax tree

  • Zipper - a set of utilities to deal with tree structure

  • Util - a set of helpers

License

MIT

Package Sidebar

Install

npm i dawn.js

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • qdwang