codegen boilerplate

This commit is contained in:
Aleksey Kladov 2019-08-18 21:34:55 +03:00
parent 14fd9e72a7
commit 839d9cce89
2 changed files with 8 additions and 0 deletions

View file

@ -1 +1,7 @@
use std::path::Path;
use crate::{Mode, Result};
pub fn generate_ast(grammar_src: &Path, dst: &Path, mode: Mode) -> Result<()> {
Ok(())
}

View file

@ -13,6 +13,8 @@ use itertools::Itertools;
pub use teraron::{Mode, Overwrite, Verify};
pub use self::codegen::generate_ast;
pub type Result<T> = std::result::Result<T, Box<dyn Error>>;
pub const GRAMMAR: &str = "crates/ra_syntax/src/grammar.ron";