mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-07 05:28:45 -04:00
improved error messages for TM and PDA's
This commit is contained in:
parent
c06a0a0147
commit
d6e4fff782
12 changed files with 817 additions and 537 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue