3.2.1 • Published 10 days ago
tree-sitter-applesoft v3.2.1
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": "^3.2.1"
}
}
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.
3.2.1
10 days ago
3.2.0
1 month ago
3.1.0
1 year ago
3.0.0
1 year ago
2.0.4
1 year ago
2.0.3
2 years ago
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
1.2.2
2 years ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.7
2 years ago
1.2.1
2 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago