Skip to content

cengelbart39/tree-sitter-toml

 
 

Repository files navigation

tree-sitter-toml

npm build

TOML (TOML Spec v1.0.0-rc.1) grammar for tree-sitter

Changelog

Install

npm install tree-sitter-toml tree-sitter

Usage

const Parser = require("tree-sitter"); const TOML = require("tree-sitter-toml"); const parser = new Parser(); parser.setLanguage(TOML); const sourceCode = `  [hello]  world = true `; const tree = parser.parse(sourceCode); console.log(tree.rootNode.toString()); // (document // (table // (key) // (pair // (key) (boolean))))

License

MIT © Ika

About

TOML grammar for tree-sitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.5%
  • C 23.9%
  • C++ 8.3%
  • Scheme 5.5%
  • Shell 0.8%