mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-07 05:28:45 -04:00
fixed issue with pda parsing
This commit is contained in:
parent
62cda62b31
commit
3f460f015f
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ impl<'a> Pda<'a> {
|
||||||
if states.contains_key(&State(ident)) {
|
if states.contains_key(&State(ident)) {
|
||||||
if map
|
if map
|
||||||
.insert(State(ident), StateInfo { definition: item.1 })
|
.insert(State(ident), StateInfo { definition: item.1 })
|
||||||
.is_none()
|
.is_some()
|
||||||
{
|
{
|
||||||
ctx.emit_error("final state redefined", item.1);
|
ctx.emit_error("final state redefined", item.1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue