Compile nearlIXIgrammar files to a JavaScript module
$ nearleyc nearlIXIgrammar.ne -o nearlIXIprocessor.js
Or use the build script
$ yarn build
Test nearlIXIprocessor against input
$ nearley-test ./nearlIXIprocessor.js --input 'percy -> |x xo xox xox|' # Percussive mode
$ nearley-test ./nearlIXIprocessor.js --input 'mel -> fle[1 3 45 67 2]' # Melodic mode
$ nearley-test ./nearlIXIprocessor.js --input 'connie -> marimba{1 3 45 67 2}!' # Concréte mode with Silence Post-score Operator
$ nearley-test ./nearlIXIprocessor.js --input 'joe >> reverb' # Routing agent through reverb
Generate a railroad diagram for nearlIXIgrammar
$ nearley-railroad nearlIXIgrammar.ne -o nearlIXIgrammar.html
Run Node unit tests
$ yarn test
Run browser-based unit tests
$ yarn test:browser
MIT