0.0.9 • Published 7 years ago

jssqlparser v0.0.9

Weekly downloads
28
License
-
Repository
github
Last release
7 years ago

Setup and Running

This folder contains code related to the core interaction language parser, AST, and execution engine.

Files

  • pegs/sql.pegjs is the grammar file for the language. Running pegjs ./pegs/sql.pegjs will generate a javascript parser file as ./pegs/sql.js
  • src/sqlast.coffee defines a function that wraps the parser generated from the peg grammar file.
  • src/ast.coffee defines the AST nodes for the language. It's a rough subset of SQL and interaction statements.

Getting started

  • install stuff

      npm install .
      cp node_modules/pegjs/bin/pegjs .
      pip install fabric
  • fab commands

      fab -l
  • compile parser

      fab peg
  • compile modules

      fab coffee
  • run a test in ./tests/

      fab parser
0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago