4.0.0 • Published 12 months ago
tree-sitter-applesoft v4.0.0
Parser for Applesoft BASIC
This is the node binding for tree-sitter-applesoft
. See the main README here.
Here is a sample package.json
:
{
"name": "parsing-example",
"version": "1.0.0",
"description": "applesoft basic parsing example",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"tree-sitter": "^0.21.1",
"tree-sitter-applesoft": "^4.0.0"
}
}
With an example index.js
as follows:
const Parser = require('tree-sitter');
const Applesoft = require('tree-sitter-applesoft');
const basicCode = '10 print "HELLO WORLD!"\n';
const parser = new Parser();
parser.setLanguage(Applesoft);
tree = parser.parse(basicCode);
console.log(tree.rootNode.toString());
This should print the syntax tree
(source_file (line (linenum) (statement (tok_print) (str))))
For more on parsing with node, see the general guidance here.
4.0.0
12 months ago
3.2.1
1 year ago
3.2.0
1 year ago
3.1.0
2 years ago
3.0.0
2 years ago
2.0.4
2 years ago
2.0.3
3 years ago
2.0.2
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.2.2
3 years ago
1.2.0
3 years ago
1.1.0
4 years ago
1.0.7
4 years ago
1.2.1
3 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago