Add StateResult type
This commit is contained in:
parent
77c3df99c0
commit
f7e990925c
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@ use self::str::RelativeIndexable;
|
|||
use self::token::Lex;
|
||||
use self::token::Token;
|
||||
|
||||
type StateResult = Result<Option<Token>, String>;
|
||||
|
||||
#[derive(Debug)]
|
||||
enum State {
|
||||
Comment,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue