Guest User

Untitled

a guest
Jul 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 KB | None | 0 0
  1. static void Main(string[] args) {
  2.            
  3.            
  4.             DKA automat = new DKA();
  5.             string userInput;
  6.    
  7.             // Skup stanja, odvojen zarezom
  8.             automat.parseStates(Console.ReadLine());
  9.  
  10.             // Skup znakova, odvojen zarezom
  11.             automat.parseCharacters(Console.ReadLine());
  12.  
  13.             // Skup prihvatljivih stanja, odvojen zarezom
  14.             automat.parseAcceptableStates(Console.ReadLine());
  15.            
  16.             // Početno stanje
  17.             automat.parseStartingState(Console.ReadLine());
  18.  
  19.             // Prijelazne funkcije
  20.             while ((userInput = Console.ReadLine()) != null) {
  21.                 automat.addTranslationFunction(userInput);
  22.             }
  23.  
  24.            
  25.             automat.minimizeDKA();
  26.             automat.printState();
  27.             Console.Read();
  28. }
Add Comment
Please, Sign In to add comment