0.0.9 • Published 9 years ago
jssqlparser v0.0.9
Setup and Running
This folder contains code related to the core interaction language parser, AST, and execution engine.
Files
pegs/sql.pegjsis the grammar file for the language. Runningpegjs ./pegs/sql.pegjswill generate a javascript parser file as./pegs/sql.jssrc/sqlast.coffeedefines a function that wraps the parser generated from the peg grammar file.src/ast.coffeedefines 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
fabcommandsfab -lcompile parser
fab pegcompile modules
fab coffeerun a test in
./tests/fab parser