refactor: allowing unused methods in FSM

This commit is contained in:
Yandrik 2021-11-30 18:06:53 +01:00
parent 9a58b1cd01
commit 65c2a1767c

View File

@ -2,6 +2,7 @@ use std::str::FromStr;
use crate::lexer::tokens::{OpType, Token, TokenMeta};
#[allow(dead_code)]
const STATES: [i32; 6] = [1, 2, 3, 4, 5, 6];
const FINAL_STATES: [i32; 4] = [2, 3, 4, 5];
const ERROR_STATE: i32 = 6;
@ -31,6 +32,7 @@ pub struct FSM {
last: i32,
}
#[allow(dead_code)]
impl FSM {
#[inline]
pub fn new() -> FSM {