improved error messages for TM and PDA's

This commit is contained in:
ParkerTenBroeck 2026-01-11 21:35:39 -05:00
parent c06a0a0147
commit d6e4fff782
12 changed files with 817 additions and 537 deletions

View file

@ -94,7 +94,7 @@ pub fn lex(input: &str) -> Vec<Tok> {
}
// ugly hack to keep single ascii letters non keyworded for user
Token::Ident(ident) if ident.is_ascii() && ident.len()==1 => Kind::Ident,
Token::Ident(ident) if ident.is_ascii() && ident.len() == 1 => Kind::Ident,
Token::Ident(
epsilon!(pat) | delta_lower!(pat) | sigma_upper!(pat) | gamma_upper!(pat),
) => Kind::Keyword,