Skip to content

Commit

Permalink
Add AST data structures to nix-parser2 crate
Browse files Browse the repository at this point in the history
The new parser would produce a CST (concrete syntax tree) which
losslessly preserves all tokens, including invalid tokens and trivia,
which would be then simplified down into this AST in a subsequent pass.
  • Loading branch information
ebkalderon committed Mar 25, 2020
1 parent 06087a6 commit 38b9cae
Show file tree
Hide file tree
Showing 4 changed files with 900 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions nix-parser2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ codespan = "0.9.1"
nom = { version = "5.1", default-features = false }
nom_locate = "2.0"
smallvec = "1.2"
smol_str = "0.1"
url = "2.1"

serde = { version = "1.0", features = ["derive"], optional = true }

Expand Down
Loading

0 comments on commit 38b9cae

Please sign in to comment.