文件名称:tree-sitter-yaml:用于保姆的YAML语法
文件大小:265KB
文件格式:ZIP
更新时间:2024-05-18 21:08:40
yaml tree-sitter grammar JavaScript
树保姆 面向YAML( )语法 安装 npm install tree-sitter-yaml tree-sitter 用法 const Parser = require ( "tree-sitter" ) ; const YAML = require ( "tree-sitter-yaml" ) ; const parser = new Parser ( ) ; parser . setLanguage ( YAML ) ; const sourceCode = ` !!map hello: &anchor - world ` ; const tree = parser . parse ( sourceCode ) ; console . log ( tree . rootNode . toString ( ) ) ; // (stream // (document //
【文件预览】:
tree-sitter-yaml-master
----.gitattributes(165B)
----grammar-schema.js(691B)
----binding.gyp(335B)
----.gitmodules(234B)
----yarn.lock(54KB)
----src()
--------scanner.cc(30KB)
--------schema.generated.cc(6KB)
--------parser.c(1.16MB)
--------grammar.json(151KB)
--------node-types.json(9KB)
--------tree_sitter()
----scripts()
--------setup-tree-sitter.sh(85B)
--------update-spec-corpus.js(2KB)
--------update-schema.sh(310B)
--------generate-playground.js(764B)
--------update-schema.js(3KB)
----.npmignore(0B)
----corpus()
--------schema.txt(10KB)
--------spec.txt(259KB)
----.travis.yml(242B)
----LICENSE(1KB)
----README.md(1KB)
----grammar.js(32KB)
----docs()
--------index.html(3KB)
--------assets()
----.editorconfig(192B)
----.gitignore(49B)
----bindings()
--------node()
----CHANGELOG.md(2KB)
----package.json(1KB)
----tree-sitter()
----yaml-test-suite()