Skip to content

Commit 3ba38c4

Browse files
committed
Merge pull request #87 from rust-lang/new-parser
Rewrite parser as part of new regex-syntax crate.
2 parents 3e26dc6 + 068514f commit 3ba38c4

File tree

16 files changed

+4285
-1507
lines changed

16 files changed

+4285
-1507
lines changed

.gitignore

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/target
2-
/Cargo.lock
3-
/regex_macros/target
4-
/regex_macros/Cargo.lock
1+
target
2+
Cargo.lock
3+
bench-log
54
.*.swp

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ script:
1515
cargo bench --manifest-path=regex_macros/Cargo.toml
1616
)
1717
- cargo doc
18+
- cargo test --verbose --manifest-path=regex-syntax/Cargo.toml
19+
- cargo doc --verbose --manifest-path=regex-syntax/Cargo.toml
1820
after_success: |
1921
[ $TRAVIS_BRANCH = master ] &&
2022
[ $TRAVIS_PULL_REQUEST = false ] &&

Cargo.toml

+6
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ path = "regex_macros/benches/bench_dynamic.rs"
2121
test = false
2222
bench = true
2323

24+
[dependencies]
25+
regex-syntax = { path = "regex-syntax", version = "0.1" }
26+
2427
[dev-dependencies]
2528
rand = "0.3"
2629

2730
[features]
2831
pattern = []
32+
33+
[profile.bench]
34+
lto = true

regex-syntax/Cargo.toml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[package]
2+
name = "regex-syntax"
3+
version = "0.1.0"
4+
authors = ["The Rust Project Developers"]
5+
license = "MIT/Apache-2.0"
6+
repository = "https://github.com/rust-lang/regex"
7+
documentation = "http://doc.rust-lang.org/regex"
8+
homepage = "https://github.com/rust-lang/regex"
9+
description = "A regular expression parser."
10+
11+
[dev-dependencies]
12+
quickcheck = "0.2"
13+
rand = "0.3"

0 commit comments

Comments
 (0)