private void Form1_Load(object sender, EventArgs e) { //Test IC parcing fileBrowser.ShowDialog(); LogicCircuitParser parser = new LogicCircuitParser("master", File.ReadAllText(fileBrowser.FileName)); masterCircuit = parser.GetMasterCircuit(); //Build the controls BuildCircuitControls(masterCircuit); timer1.Enabled = true; }
//Constructors public LogicCircuitParser(string masterName, string text) { //Initializes the state and parses the text. this.text = text; textPos = 0; masterCircuit = new MasterCircuit(masterName); circuitStack.Push(new IntegratedCircuitParseData(masterCircuit, this)); Parse(masterName); }