tree-sitter-symbiont
v0.1.0
Published
Tree-sitter grammar for the Symbiont (.symbi) agent DSL.
Maintainers
Readme
tree-sitter-symbiont
Tree-sitter grammar for the Symbiont (.symbi) agent DSL — part of the ThirdKey trust stack.
.symbi files describe AI agents with capabilities, policies, schedules, channels, and typed function bodies. See the Symbiont DSL guide for the language reference.
Install
npm
npm install tree-sitter-symbiontconst Parser = require("tree-sitter");
const Symbi = require("tree-sitter-symbiont");
const parser = new Parser();
parser.setLanguage(Symbi.language);
const tree = parser.parse('metadata { version: "1.0" }');
console.log(tree.rootNode.toString());Cargo
[dependencies]
tree-sitter = "0.21"
tree-sitter-symbiont = "0.1"let mut parser = tree_sitter::Parser::new();
parser
.set_language(&tree_sitter_symbiont::LANGUAGE.into())
.expect("Error loading Symbiont grammar");Develop
npm install --ignore-scripts
npx tree-sitter generate
npx tree-sitter testTo inspect the parse tree for an arbitrary file:
npx tree-sitter parse path/to/file.symbiLicense
Apache-2.0. See LICENSE.
