Integrating canopy (with a demo parser from the canopy docs)

This commit is contained in:
Jeff Avallone
2014-11-24 22:31:20 -05:00
parent fe06a99178
commit ba9b779ba7
8 changed files with 43 additions and 13 deletions
+2 -4
View File
@@ -1,5 +1,3 @@
import test from './test';
import parser from './parser.peg';
test('foo');
console.log('testing');
console.log('testing:', parser.parse('[0,1,2,3]'));
+4
View File
@@ -0,0 +1,4 @@
grammar Lists
value <- list / number
list <- "[" ( value ("," value)* )? "]"
number <- [0-9]
-3
View File
@@ -1,3 +0,0 @@
export default m => {
console.log(m);
};