mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
codegen boilerplate
This commit is contained in:
parent
14fd9e72a7
commit
839d9cce89
@ -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…
x
Reference in New Issue
Block a user