public UCGraphSynToCode(CompilerFuzzy comp)
        {
            this.comp = comp;
            InitializeComponent();
            //this.richTextBoxCodeIn.Text = "get dog ball";////"x=x";"dog get ball";
            this.richTextBoxCodeIn.Text = "dog get ball";////"x=x";"dog get ball";
            //this.richTextBoxCodeIn.Text = "can people";////"x=x";"dog get ball";

            this.Dock = DockStyle.Fill;
            // try
            {
                richTextBoxCodeIn_TextChanged(null, null);

            }
            //catch (Exception ex)
            { }
        }
 public void OnCompile(CompilerFuzzy compile)
 {
     if (compile.Syn is SyntacticAnalysisLR1)
         DrawAutoma((compile.Syn as SyntacticAnalysisLR1).Automa);
 }
 public UCAutomaSyn(CompilerFuzzy compile)
     : this(compile.Syn)
 {
     compile.OnCompile += OnCompile;
 }
 public void OnCompile(CompilerFuzzy compile)
 {
     if (compile.Syn.GraphsSyntactic != null && compile.Syn.GraphsSyntactic.Count > 0)
         Draw(compile.Syn.GraphsSyntactic[0]);
 }
 public UCGraphSyn(CompilerFuzzy compile)
     : this(new Graph<Symbol, double>())
 {
     compile.OnCompile += OnCompile;
 }