diff options
author | Neal H. Walfield <neal@pep.foundation> | 2018-07-11 12:02:02 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2018-07-11 12:02:02 +0200 |
commit | a3abfd6bfd399bd4f366f47b527d9cd68957c018 (patch) | |
tree | 7f0c08067273c4859e6e7625f4c549a28cd92fc9 /openpgp/build.rs | |
parent | 5b311f141e87c813c2c031894fa07bc6a32da0c0 (diff) |
openpgp: Instead of using an ad-hoc parser, use a parser generator.
- Instead of using an ad-hoc parser for recognizing OpenPGP
messages, use lalrpop, an lr(1) parser generator, for recognizing
OpenPGP messages.
Diffstat (limited to 'openpgp/build.rs')
-rw-r--r-- | openpgp/build.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openpgp/build.rs b/openpgp/build.rs new file mode 100644 index 00000000..b18f693b --- /dev/null +++ b/openpgp/build.rs @@ -0,0 +1,10 @@ +extern crate lalrpop; + +// Rerun if any of these files change: +#[allow(dead_code)] +const SOURCE: &'static str + = include_str!("src/message/grammar.lalrpop"); + +fn main() { + lalrpop::process_root().unwrap(); +} |