mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
codegen boilerplate
This commit is contained in:
parent
14fd9e72a7
commit
839d9cce89
2 changed files with 8 additions and 0 deletions
|
@ -1 +1,7 @@
|
|||
use std::path::Path;
|
||||
|
||||
use crate::{Mode, Result};
|
||||
|
||||
pub fn generate_ast(grammar_src: &Path, dst: &Path, mode: Mode) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue