public static void Initializare() { _gramatica = new Gramatica(); index = 0; _frames = new List <UIElement>(); _generator = new GeneratorCod(_gramatica); }
private void Button_Click2(object sender, RoutedEventArgs e) { try { generator = new GeneratorCod(gramatica); generator.MultimileFF(); string MultimiDirector = ""; foreach (List <string> i in generator.FirstFollow) { foreach (string j in i) { MultimiDirector += j + " "; } MultimiDirector += "\n"; } Display2.Text = MultimiDirector; } catch (Exception error) { MessageBox.Show(error.Message); } }