The lezer-rsdl.grammar needs to be compiled into JS, and the output seems to have been manually copied into lang.js, or this file had once been generated and then manually modified. Both approaches aren't sustainable:
[x] reverse-engineer how lang.js had originally been created
[x] extract the generated parts from lang.js and import them
[x] rebuild the lezer parser as part of the build script
add npm script similar to lezer-generator ./src/lang-rsdl/lezer-rsdl.grammar -o src/lang-rsdl/lang.js --noTerms --export rsdl
The
lezer-rsdl.grammar
needs to be compiled into JS, and the output seems to have been manually copied intolang.js
, or this file had once been generated and then manually modified. Both approaches aren't sustainable:lang.js
had originally been createdlang.js
and import themlezer-generator ./src/lang-rsdl/lezer-rsdl.grammar -o src/lang-rsdl/lang.js --noTerms --export rsdl
build
script beforerollup