refactor: allowing unused methods in FSM
This commit is contained in:
parent
9a58b1cd01
commit
65c2a1767c
@ -2,6 +2,7 @@ use std::str::FromStr;
|
|||||||
|
|
||||||
use crate::lexer::tokens::{OpType, Token, TokenMeta};
|
use crate::lexer::tokens::{OpType, Token, TokenMeta};
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
const STATES: [i32; 6] = [1, 2, 3, 4, 5, 6];
|
const STATES: [i32; 6] = [1, 2, 3, 4, 5, 6];
|
||||||
const FINAL_STATES: [i32; 4] = [2, 3, 4, 5];
|
const FINAL_STATES: [i32; 4] = [2, 3, 4, 5];
|
||||||
const ERROR_STATE: i32 = 6;
|
const ERROR_STATE: i32 = 6;
|
||||||
@ -31,6 +32,7 @@ pub struct FSM {
|
|||||||
last: i32,
|
last: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
impl FSM {
|
impl FSM {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn new() -> FSM {
|
pub fn new() -> FSM {
|
||||||
|
Loading…
Reference in New Issue
Block a user