Skip to content

Commit

Permalink
Major rewrite of the project
Browse files Browse the repository at this point in the history
- The parser will now automatically generate a CST
- Code for actions and predicates is no longer written in the grammar
- Error handlers were removed and the error recovery was redesigned
  • Loading branch information
0x2a-42 committed May 27, 2024
1 parent a54f154 commit cecc862
Show file tree
Hide file tree
Showing 96 changed files with 8,078 additions and 4,737 deletions.
436 changes: 231 additions & 205 deletions Cargo.lock

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lelwel"
version = "0.5.1"
version = "0.6.0"
description = "LL(1) parser generator"
repository = "https://github.com/0x2a-42/lelwel"
readme = "README.md"
Expand All @@ -10,17 +10,19 @@ keywords = ["parser", "generator", "LL", "grammar"]
categories = ["parsing"]

[dependencies]
logos = "0.13.0"
logos = "0.14.0"
codespan-reporting = "0.11.1"
codespan-lsp = { version = "0.11.1", optional = true }
tokio = { version = "1.29.1", features = ["full"], optional = true }
clap = { version = "4.4", features = ["cargo"], optional = true }
lsp-types = { version = "0.88.0", optional = true }
tower-lsp = { version = "0.20.0", optional = true }
wasm-bindgen = { version = "0.2.92", optional = true }

[features]
cli = ["clap"]
lsp = ["tokio", "tower-lsp", "codespan-lsp", "lsp-types"]
wasm = ["wasm-bindgen"]

[[bin]]
name = "llw"
Expand All @@ -29,3 +31,6 @@ required-features = ["cli"]
[[bin]]
name = "lelwel-ls"
required-features = ["lsp"]

[lib]
crate-type = ["lib", "cdylib"]
2 changes: 1 addition & 1 deletion LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Daniel Pfister
Copyright (c) 2024 Daniel Pfister

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit cecc862

Please sign in to comment.