Integrating canopy (with a demo parser from the canopy docs)
This commit is contained in:
+2
-4
@@ -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]'));
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
grammar Lists
|
||||
value <- list / number
|
||||
list <- "[" ( value ("," value)* )? "]"
|
||||
number <- [0-9]
|
||||
@@ -1,3 +0,0 @@
|
||||
export default m => {
|
||||
console.log(m);
|
||||
};
|
||||
Reference in New Issue
Block a user