Parser for Integer BASIC
This is the node binding for tree-sitter-integerbasic
. See the main README here.
Here is a sample package.json
:
With an example index.js
as follows:
const Parser = require;
const Integer = require;
const code = '10 print "HELLO WORLD!"\n';
const parser = ;
parser.;
tree = parser.;
console.log;
This should print the syntax tree
(source_file (line (linenum) (statement (statement_print_str) (string (quote) (unquote)))))
For more on parsing with node, see the general guidance here.