Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args) {
- DKA automat = new DKA();
- string userInput;
- // Skup stanja, odvojen zarezom
- automat.parseStates(Console.ReadLine());
- // Skup znakova, odvojen zarezom
- automat.parseCharacters(Console.ReadLine());
- // Skup prihvatljivih stanja, odvojen zarezom
- automat.parseAcceptableStates(Console.ReadLine());
- // Početno stanje
- automat.parseStartingState(Console.ReadLine());
- // Prijelazne funkcije
- while ((userInput = Console.ReadLine()) != null) {
- automat.addTranslationFunction(userInput);
- }
- automat.minimizeDKA();
- automat.printState();
- Console.Read();
- }
Add Comment
Please, Sign In to add comment