From 839d9cce89adcae23dfd108acf231dca00724f08 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 18 Aug 2019 21:34:55 +0300 Subject: [PATCH] codegen boilerplate --- crates/ra_tools/src/codegen.rs | 6 ++++++ crates/ra_tools/src/lib.rs | 2 ++ 2 files changed, 8 insertions(+) diff --git a/crates/ra_tools/src/codegen.rs b/crates/ra_tools/src/codegen.rs index 8b13789179..edb01aceb6 100644 --- a/crates/ra_tools/src/codegen.rs +++ b/crates/ra_tools/src/codegen.rs @@ -1 +1,7 @@ +use std::path::Path; +use crate::{Mode, Result}; + +pub fn generate_ast(grammar_src: &Path, dst: &Path, mode: Mode) -> Result<()> { + Ok(()) +} diff --git a/crates/ra_tools/src/lib.rs b/crates/ra_tools/src/lib.rs index 96290ecc45..2cbb07ebfb 100644 --- a/crates/ra_tools/src/lib.rs +++ b/crates/ra_tools/src/lib.rs @@ -13,6 +13,8 @@ use itertools::Itertools; pub use teraron::{Mode, Overwrite, Verify}; +pub use self::codegen::generate_ast; + pub type Result = std::result::Result>; pub const GRAMMAR: &str = "crates/ra_syntax/src/grammar.ron";