0.1.1 • Published 9 years ago

dawn.js v0.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

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