Reinforz / fauton

An ecosystem of packages to work with automaton and parsers (dfa/nfa/e-nfa/regex/cfg/pda)

Home Page:http://docs.fauton.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shortened state string for nfa transition record array item values

Devorein opened this issue · comments

const nfa1 = new NonDeterministicFiniteAutomaton(()=> true, {
	transitions: {
		alphabets: ['a', 'b', 'c']
		A: ['A-Z', ['A-D', 'F', '0-5']],
	}
});

When we are in state A :-

  1. we encounter symbol 'a' move to all states from A to Z
  2. we encounter symbol 'b' move to all states from A to D, F and 0 to 5

Feature added in version 0.0.9