tree-sitter-yaml:用于保姆的YAML语法

时间:2021-04-29 03:22:00
【文件属性】:
文件名称:tree-sitter-yaml:用于保姆的YAML语法
文件大小:265KB
文件格式:ZIP
更新时间:2021-04-29 03:22:00
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()

网友评论