Package javiergs.tulip.compiler
Class Automata
java.lang.Object
javiergs.tulip.compiler.Automata
Automata class represent a DFA.
This version is implemented with a HashMap to store the transition table.
- Version:
- 1.0
- Author:
- javiergs, UP students 2026 - team cmd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAcceptState(String state, String name) voidaddTransition(String currentState, String inputSymbol, String nextState) getAcceptStateName(String state) getNextState(String currentState, char inputSymbol) booleanisAcceptState(String name) void
-
Constructor Details
-
Automata
public Automata()
-
-
Method Details
-
addTransition
-
getNextState
-
addAcceptState
-
isAcceptState
-
getAcceptStateName
-
printTable
public void printTable()
-