fixed final state parsing for FA, made FA transitions more visually appealing, supported identifiers starting with a numeric character

This commit is contained in:
Parker TenBroeck 2026-01-09 23:23:58 -05:00
parent 4b83fe4759
commit 9dcef68d82
3 changed files with 5 additions and 5 deletions

View file

@ -160,7 +160,7 @@ export function setAutomaton(auto: Machine) {
font,
from: to_from[0],
to: to_from[1],
label: transitions.map(i => i.repr).join("\n"),
label: transitions.map(i => i.repr).join(auto.type=="fa"?",":"\n"),
});
} else {
edges.add({
@ -168,7 +168,7 @@ export function setAutomaton(auto: Machine) {
font,
from: to_from[0],
to: to_from[1],
label: transitions.map(i => i.repr).join("\n"),
label: transitions.map(i => i.repr).join(auto.type=="fa"?",":"\n"),
});
}
}