diff options
author | Aleksey Kladov <[email protected]> | 2019-08-18 19:34:55 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-08-18 19:36:06 +0100 |
commit | 839d9cce89adcae23dfd108acf231dca00724f08 (patch) | |
tree | 10b6e6f08854ea8117e0519022bdb8924749ddb2 /crates/ra_tools/src | |
parent | 14fd9e72a7e5a742996ca1b7d86234b51e6e84a5 (diff) |
codegen boilerplate
Diffstat (limited to 'crates/ra_tools/src')
-rw-r--r-- | crates/ra_tools/src/codegen.rs | 6 | ||||
-rw-r--r-- | crates/ra_tools/src/lib.rs | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/crates/ra_tools/src/codegen.rs b/crates/ra_tools/src/codegen.rs index 8b1378917..edb01aceb 100644 --- a/crates/ra_tools/src/codegen.rs +++ b/crates/ra_tools/src/codegen.rs | |||
@@ -1 +1,7 @@ | |||
1 | use std::path::Path; | ||
1 | 2 | ||
3 | use crate::{Mode, Result}; | ||
4 | |||
5 | pub fn generate_ast(grammar_src: &Path, dst: &Path, mode: Mode) -> Result<()> { | ||
6 | Ok(()) | ||
7 | } | ||
diff --git a/crates/ra_tools/src/lib.rs b/crates/ra_tools/src/lib.rs index 96290ecc4..2cbb07ebf 100644 --- a/crates/ra_tools/src/lib.rs +++ b/crates/ra_tools/src/lib.rs | |||
@@ -13,6 +13,8 @@ use itertools::Itertools; | |||
13 | 13 | ||
14 | pub use teraron::{Mode, Overwrite, Verify}; | 14 | pub use teraron::{Mode, Overwrite, Verify}; |
15 | 15 | ||
16 | pub use self::codegen::generate_ast; | ||
17 | |||
16 | pub type Result<T> = std::result::Result<T, Box<dyn Error>>; | 18 | pub type Result<T> = std::result::Result<T, Box<dyn Error>>; |
17 | 19 | ||
18 | pub const GRAMMAR: &str = "crates/ra_syntax/src/grammar.ron"; | 20 | pub const GRAMMAR: &str = "crates/ra_syntax/src/grammar.ron"; |