Fix long units causing error (max_word_length)

This commit is contained in:
Kasper 2019-12-21 17:59:21 +01:00
parent a4db9df058
commit d463082db5

View File

@ -11,7 +11,7 @@ pub fn lex(input: &str) -> Result<TokenVector, String> {
let mut chars = input.chars().enumerate().peekable(); let mut chars = input.chars().enumerate().peekable();
let mut tokens: TokenVector = vec![]; let mut tokens: TokenVector = vec![];
let max_word_length = 5; let max_word_length = 12;
let mut left_paren_count = 0; let mut left_paren_count = 0;
let mut right_paren_count = 0; let mut right_paren_count = 0;