Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/move-hub/tree-sitter-move
tree-sitter grammar for libra move language
https://github.com/move-hub/tree-sitter-move
grammar libra move parser tree-sitter
Last synced: 3 months ago
JSON representation
tree-sitter grammar for libra move language
- Host: GitHub
- URL: https://github.com/move-hub/tree-sitter-move
- Owner: move-hub
- License: mit
- Created: 2020-04-14T04:24:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-17T06:28:17.000Z (over 4 years ago)
- Last Synced: 2024-10-09T22:21:15.229Z (3 months ago)
- Topics: grammar, libra, move, parser, tree-sitter
- Language: C
- Homepage:
- Size: 602 KB
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## tree-sitter-move
[tree-sitter][1] grammar for Libra's Move language.
### Move Grammar
The grammar is based on the origin Move language [syntax parser][2].
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`.
4. 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
```[1]: https://tree-sitter.github.io
[2]: https://github.com/libra/libra/blob/master/language/move-lang/src/parser/syntax.rs