| Crates.io | tree-sitter-integerbasic |
| lib.rs | tree-sitter-integerbasic |
| version | 3.0.0 |
| created_at | 2022-03-13 17:24:07.751504+00 |
| updated_at | 2025-08-03 20:48:02.781642+00 |
| description | parser for integer basic |
| homepage | |
| repository | https://github.com/dfgordon/tree-sitter-integerbasic |
| max_upload_size | |
| id | 549299 |
| size | 1,023,106 |
This is the node binding for tree-sitter-integerbasic. See the main README here.
Here is a sample package.json:
{
"name": "parsing-example",
"version": "1.0.0",
"description": "integer basic parsing example",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"node-gyp": "^10.1.0",
"tree-sitter": "^0.21.1",
"tree-sitter-integerbasic": "^2.0.0"
}
}
With an example index.js as follows:
const Parser = require('tree-sitter');
const Integer = require('tree-sitter-integerbasic');
const code = '10 print "HELLO WORLD!"\n';
const parser = new Parser();
parser.setLanguage(Integer);
tree = parser.parse(code);
console.log(tree.rootNode.toString());
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.