Skip to content

Commit

Permalink
Tree sitter ast (#77)
Browse files Browse the repository at this point in the history
* draft tree sitter AST

* remove jinja2 file

* add more expressions

* lints, some more expressions

* add more expressions

* more

* simplify build script
  • Loading branch information
mkurnikov authored Jun 3, 2020
1 parent e5fcab0 commit 59a9d4c
Show file tree
Hide file tree
Showing 10 changed files with 27,000 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
asset_name: move-executor-${{ matrix.platform }}
asset_content_type: application/octet-stream

- name: Language Server - upload binary as Release Asset (windows)
- name: Executor - upload binary as Release Asset (windows)
if: matrix.os == 'windows-latest'
uses: actions/upload-release-asset@v1
env:
Expand Down
26 changes: 22 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ members = [
"crates/dialects/lang",
"crates/utils",
"crates/integration_tests",
"crates/syntax",
]
12 changes: 12 additions & 0 deletions crates/syntax/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "syntax"
version = "0.1.0"
authors = ["Maksim Kurnikov <[email protected]>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
cc = "1.0.54"

[dependencies]
tree-sitter = "0.16.0"
11 changes: 11 additions & 0 deletions crates/syntax/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
fn main() {
let resources_dir = std::env::current_dir().unwrap().join("resources");
let move_parser_file = resources_dir.join("parser.c");

println!("cargo:rerun-if-changed={}", resources_dir.to_str().unwrap()); // <1>

cc::Build::new()
.file(move_parser_file)
.include(&resources_dir)
.compile("tree-sitter-move");
}
Loading

0 comments on commit 59a9d4c

Please sign in to comment.