/// <summary> Crear arbol sintatico y autoamta finito con la expresion regular ingresada</summary> public void Built() { syntaticTree = new SyntaticTree(regex.text); dfa = new DFA(syntaticTree.root); ShowTable(); EnableTab(4); StartCoroutine(BuildingLoading()); }
/// <summary>Initializes a new instance of the <see cref="DFA"/> class.</summary> /// <param name="root">The root.</param> public DFA(Node root) { gameController = new GameController(); syntaticTree = gameController.GetSyntaticTree(); GenerateInputSymbols(); states.Add(NewState(root.firstPos.ToArray(), states.Count)); GenerateStates(); CreateTable(); actualState = states[0];//First state is actual state }