Skip to content

Commit

Permalink
feat: combinator based parser
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma-s1n committed Jun 3, 2024
1 parent bd6b6b5 commit b910bbc
Show file tree
Hide file tree
Showing 4 changed files with 562 additions and 1 deletion.
33 changes: 33 additions & 0 deletions Cargo.lock

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

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ strip = true
anyhow = { version = "1.0.72", default-features = false, features = ["std", "backtrace"] }
bincode = { version = "1.3.3", default-features = false }
clap = { version = "4.3.17", default-features = false, features = ["std", "color", "help", "usage", "error-context", "suggestions", "derive"] }
function_name = { version = "0.3.0", default-features = false, optional = true }
itertools = { version = "0.11.0", default-features = false, features = ["use_std"] }
lazy_static = { version = "1.4.0", default-features = false }
log = { version = "0.4.19", default-features = false, features = ["max_level_trace", "release_max_level_info"] }
nix = { version = "0.26.2", default-features = false, features = ["fs"] }
nom = { version = "7.1.3", default-features = false, features = ["std"], optional = true }
pest = { version = "2.7.10", default-features = false, features = ["std", "memchr"], optional = true }
pest_derive = { version = "2.7.10", default-features = false, features = ["std", "grammar-extras"], optional = true}
rand = { version = "0.8.5", default-features = false, features = ["std", "std_rng"] }
Expand All @@ -37,11 +39,13 @@ predicates = { version = "3.0.3", default-features = false, features = ["color"]
pretty_assertions = { version = "1.4.0", default-features = false, features = ["std"] }

[features]
default = ["parser-peg"]
default = ["parser-combinator"]
as-root = [] # for tests only
nightly = [] # for benchmarks only
parser-combinator = ["dep:function_name", "dep:nom"]
parser-peg = ["dep:pest", "dep:pest_derive"]
parser-regex = []
function_name = ["dep:function_name"]

[lints.rust]
missing_docs = "warn"
Expand Down
Loading

0 comments on commit b910bbc

Please sign in to comment.