You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now when creating a dfa the transition map allows a state to have an array of states for a symbol. For example
const{ DeterministicFiniteAutomaton }=require('fauton');constpath=require('path');conststartsWithBC=newDeterministicFiniteAutomaton((inputString)=>inputString.startsWith('bc'),{alphabets: ['a','b'],transitions: {// Passing an array of states for symbol 'a', but it can only be an individual state for a dfa// array of states is only valid for a nfaA: [['B','A'],'A'],B: ['A','B'],},});
Ideally, the user should get an error message when this issue occurs as this is an invalid dfa. At this moment of the package 0.0.3, this issue doesn't throw an error and acts as if the automaton is a nfa
The text was updated successfully, but these errors were encountered:
Right now when creating a dfa the transition map allows a state to have an array of states for a symbol. For example
Ideally, the user should get an error message when this issue occurs as this is an invalid dfa. At this moment of the package
0.0.3
, this issue doesn't throw an error and acts as if the automaton is a nfaThe text was updated successfully, but these errors were encountered: