fixed a few issues with auto resizing

This commit is contained in:
Parker TenBroeck 2026-01-07 14:12:42 -05:00
parent 806545aba6
commit 3d656d45de
6 changed files with 263 additions and 121 deletions

View file

@ -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;
}
})
}