All Projects → ikatyang → tree-sitter-toml

ikatyang / tree-sitter-toml

Licence: MIT license
TOML grammar for tree-sitter

Programming Languages

javascript
184084 projects - #8 most used programming language
c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language
scheme
763 projects
shell
77523 projects

Projects that are alternatives of or similar to tree-sitter-toml

cmkr
Modern build system based on CMake and TOML.
Stars: ✭ 211 (+817.39%)
Mutual labels:  toml
tree-sitter-legesher-python
✨ Legesher's Python grammar for Tree-Sitter 🌳
Stars: ✭ 40 (+73.91%)
Mutual labels:  tree-sitter
Tomlet
Zero-Dependency, model-based TOML De/Serializer for .NET
Stars: ✭ 56 (+143.48%)
Mutual labels:  toml
cfg-rs
A Configuration Library for Rust Applications
Stars: ✭ 18 (-21.74%)
Mutual labels:  toml
tree-sitter-html
HTML grammar for Tree-sitter
Stars: ✭ 56 (+143.48%)
Mutual labels:  tree-sitter
contentful-export
Extract Contentful to Hugo
Stars: ✭ 22 (-4.35%)
Mutual labels:  toml
tree-sitter-haskell
Haskell grammar for tree-sitter.
Stars: ✭ 110 (+378.26%)
Mutual labels:  tree-sitter
SwiftTreeSitter
Swift wrappers for the tree-sitter incremental parsing system
Stars: ✭ 116 (+404.35%)
Mutual labels:  tree-sitter
zee
A modern text editor for the terminal written in Rust
Stars: ✭ 1,120 (+4769.57%)
Mutual labels:  tree-sitter
transfer
Converts from one encoding to another. Supported formats HCL ⇄ JSON ⇄ YAML⇄TOML⇄XML⇄plist⇄pickle⇄properties ...
Stars: ✭ 70 (+204.35%)
Mutual labels:  toml
playground
Treesitter playground integrated into Neovim
Stars: ✭ 467 (+1930.43%)
Mutual labels:  tree-sitter
tree-sitter-elisp
tree-sitter grammar for emacs lisp
Stars: ✭ 20 (-13.04%)
Mutual labels:  tree-sitter
tree-hugger
A light-weight, extendable, high level, universal code parser built on top of tree-sitter
Stars: ✭ 96 (+317.39%)
Mutual labels:  tree-sitter
tree-sitter-julia
Julia grammar for Tree-sitter
Stars: ✭ 53 (+130.43%)
Mutual labels:  tree-sitter
front-matter
The most featured front matter (yaml, json, neon, toml) parser and dumper for PHP.
Stars: ✭ 23 (+0%)
Mutual labels:  toml
crates
crates is an extension aims to help people to manage their dependencies for rust (crates.io & TOML).
Stars: ✭ 156 (+578.26%)
Mutual labels:  toml
htoml
TOML file format parser in Haskell
Stars: ✭ 39 (+69.57%)
Mutual labels:  toml
audible-cli
A command line interface for audible package. With the cli you can download your Audible books, cover, chapter files.
Stars: ✭ 142 (+517.39%)
Mutual labels:  toml
tomlcpp
No fanfare TOML C++ Library
Stars: ✭ 21 (-8.7%)
Mutual labels:  toml
climatecontrol
Python library for loading settings and config data from files and environment variables
Stars: ✭ 20 (-13.04%)
Mutual labels:  toml

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].