JSPM

@movei/tree-sitter-move

0.2.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q37440F
  • License MIT

move grammar in tree-sitter

Package Exports

  • @movei/tree-sitter-move

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@movei/tree-sitter-move) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tree-sitter-move

tree-sitter grammar for Libra's Move language.

Move Grammar

The grammar is based on the origin Move language syntax parser. Once Move is stablized, the grammar will also be stable.

I'd like to use this grammar to do syntax hightlighting for Move in vscode, and maybe atom.

Develop

  1. Install tree-sitter-cli first.
  2. then run tree-sitter generate.
  3. parse a exmaple file: tree-sitter parse examples/libra-std/libra_account.move.

Try

tree-sitter build-wasm
tree-sitter web-ui

Test

Run:

tree-sitter test
# or parse whole libra std module
tree-sitter parse -q -t examples/libra-std/*.move