[package]
edition = "2024"
name = "tygr"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Define your grammar once as Rust types and get a parser, printer, and EBNF presentation for free."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/intersystems-community/tygr"
[features]
context = []
default = ["trace"]
history = []
trace = [
"trace_pos",
"trace_attempts",
"tygr-derive/trace",
]
trace_any = ["history"]
trace_attempts = [
"trace_pos",
"context",
]
trace_pos = [
"trace_any",
"tygr-derive/trace_pos",
]
[lib]
name = "tygr"
path = "src/lib.rs"
[[example]]
name = "arith"
path = "examples/arith.rs"
[[example]]
name = "json"
path = "examples/json.rs"
[[example]]
name = "json_optimized"
path = "examples/json_optimized.rs"
[[bench]]
name = "json_optimized"
path = "benches/json_optimized.rs"
harness = false
[dependencies.either]
version = "1.15.0"
[dependencies.tygr-derive]
version = "0.1"
[lints.clippy]
type_complexity = "allow"