Skip to content

move-hub/tree-sitter-move

Repository files navigation

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