mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-03-28 06:01:02 +00:00
Conditional doc
This commit is contained in:
parent
e6b6a07fd6
commit
3e0624c90a
9
doc/src/conditional-compilation.md
Normal file
9
doc/src/conditional-compilation.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
LALRPOP support conditional compilation of public non-terminal declarations via `#[cfg(feature = "FEATUERE")]` attributes.
|
||||||
|
If run in a build script LALRPOP will automatically pickup the features from `cargo` and use those. Alternatively an explicit set of features can be set using the `Configuration` type.
|
||||||
|
|
||||||
|
```rust
|
||||||
|
#[cfg(feature = "FEATURE")]
|
||||||
|
pub MyRule : () = {
|
||||||
|
...
|
||||||
|
};
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user