Skip to content

Commit 3b21938

Browse files
authored
Merge pull request #3 from Yuta1004/develop
Release v0.1.0
2 parents 780a3c6 + 26c7eef commit 3b21938

File tree

27 files changed

+2077
-0
lines changed

27 files changed

+2077
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target*

Cargo.lock

Lines changed: 218 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[package]
2+
name = "parsergen"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
anyhow = { workspace = true }
8+
thiserror = { workspace = true }
9+
core = { workspace = true }
10+
algorithm = { workspace = true }
11+
12+
[dev-dependencies]
13+
serde = { workspace = true }
14+
serde_json = "1.0.117"
15+
16+
[features]
17+
default = []
18+
derive = ["core/derive"]
19+
20+
[workspace]
21+
resolver = "2"
22+
members = [
23+
"./crates/core",
24+
"./crates/algorithm",
25+
]
26+
exclude = []
27+
28+
[workspace.dependencies]
29+
anyhow = "1.0.82"
30+
thiserror = "1.0.58"
31+
serde = "1.0.197"
32+
regex = "1.10.4"
33+
regex-macro = "0.2.0"
34+
core = { path = "./crates/core" }
35+
algorithm = { path = "./crates/algorithm" }

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
11
# Parsergen
22

33
Rust製パーサジェネレータ
4+
5+
## Features
6+
7+
- `derive`
8+
9+
## Examples
10+
11+
[examples/expr.rs](examples/expr.rs)
12+
13+
```
14+
$ cargo run --example expr
15+
(10+20)/((30*40)-50)
16+
Accepted
17+
18+
$ cargo run --example expr
19+
10**
20+
Rejected: Error at (0, 3)
21+
```

crates/algorithm/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[package]
2+
name = "algorithm"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
lr1 = { package = "algorithm_lr1", path = "../algorithm_lr1" }

crates/algorithm/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub use lr1::LR1;

crates/algorithm_lr1/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "algorithm_lr1"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
anyhow = { workspace = true }
8+
thiserror = { workspace = true }
9+
serde = { workspace = true, features = ["derive"] }
10+
itertools = "0.12.1"
11+
core = { path = "../core", features = ["derive"] }

0 commit comments

Comments
 (0)