fix(generate): remove unused rules
This commit is contained in:
parent
19c33b1ef7
commit
99a0ddc4c2
4 changed files with 97 additions and 27 deletions
|
|
@ -173,7 +173,7 @@ fn flatten_variable(variable: Variable) -> SyntaxVariable {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn symbol_is_used(variables: &[SyntaxVariable], symbol: Symbol) -> bool {
|
||||
fn symbol_is_used(variables: &[SyntaxVariable], symbol: Symbol) -> bool {
|
||||
for variable in variables {
|
||||
for production in &variable.productions {
|
||||
for step in &production.steps {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use std::{
|
|||
};
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
pub(super) use flatten_grammar::symbol_is_used;
|
||||
|
||||
pub use self::expand_tokens::expand_tokens;
|
||||
use self::{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue