lwb_parser/
lib.rs

1///! Docs at [https://jonay2000.github.io/rust-lwb/](https://jonay2000.github.io/rust-lwb/)
2
3/// Code describing languages created with rust-lwb
4#[macro_use]
5pub mod language;
6
7/// Contains code related to syntax definitions
8/// and parsing target languages based on these
9/// definitions. Also contains sort/constructor
10/// related code and code generation for these.
11/// Contains the PEG parser.
12pub mod parser;
13
14/// Contains code related to source code of languages
15/// such as spans, and the [`SourceFile`] struct.
16pub mod sources;
17
18/// Collection of imports used in automatically generated
19/// files (to avoid listing many imports in them). Should
20/// not generally be used directly by users of rust-lwb
21pub mod codegen_prelude;
22
23/// Code related to generating rust source files
24/// from language definitions. Usually used from
25/// build.rs files.
26pub mod codegen;
27
28/// Code related to configuring rust-lwb
29pub mod config;
30
31// Mostly used in bootstrapper
32pub use bincode;
33pub mod error;