mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +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 teraron::{Mode, Overwrite, Verify};
|
||||||
|
|
||||||
|
pub use self::codegen::generate_ast;
|
||||||
|
|
||||||
pub type Result<T> = std::result::Result<T, Box<dyn Error>>;
|
pub type Result<T> = std::result::Result<T, Box<dyn Error>>;
|
||||||
|
|
||||||
pub const GRAMMAR: &str = "crates/ra_syntax/src/grammar.ron";
|
pub const GRAMMAR: &str = "crates/ra_syntax/src/grammar.ron";
|
||||||
|
|
Loading…
Reference in a new issue