mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-06 21:24:06 -04:00
fixed a few issues with auto resizing
This commit is contained in:
parent
806545aba6
commit
3d656d45de
6 changed files with 263 additions and 121 deletions
|
|
@ -101,6 +101,7 @@ pub fn parse_universal(ctx: &mut Context<'_>) -> Option<Machine> {
|
|||
|
||||
use Spanned as S;
|
||||
|
||||
#[derive(Debug)]
|
||||
enum Type{
|
||||
Dfa,
|
||||
Nfa,
|
||||
|
|
@ -138,11 +139,10 @@ pub fn parse_universal(ctx: &mut Context<'_>) -> Option<Machine> {
|
|||
}
|
||||
|
||||
Some(match parse_type(items.next(), ctx)?{
|
||||
Type::Dfa => todo!(),
|
||||
Type::Nfa => todo!(),
|
||||
Type::Dpda => todo!(),
|
||||
Type::Npda => Machine::Npda(npda::Npda::load_from_ast(items, ctx)?),
|
||||
Type::Tm => todo!(),
|
||||
Type::Ntm => todo!(),
|
||||
ty => {
|
||||
ctx.emit_error_locless(format!("currently unsupported type {ty:?}"));
|
||||
return None;
|
||||
}
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue