Inspired from jcs090218/tree-sitter-actionscript and the official javascript grammar for tree-sitter.
This grammar is tailored for parsing results of jpexs-decompiler, so it may include non standard grammar and quirky stuff.
yarn installyarn buildThen you can parse a file using
tree-sitter parse file.asThere is a corpus of test in the test directory.
To run the grammar against the corpus use:
yarn test
# OR, to build then test
yarn build-testUse one of the binding for tree sitter to use this grammar in an external software, for example the python bindings.