public void Parse() { // // From the Live Geometry UI, we parse those components of the figures // List<IFigure> ifigs = new List<IFigure>(); drawing.Figures.ForEach<IFigure>(f => ifigs.Add(f)); // Parsing of the UI-based components results in populated lists for: // (a) Named points // (b) Segments // (c) Polygons (includes triangles and quadrilaterals) // (d) Regular Polygons (in polygon structure) // (e) Circles DirectComponentsFromUI uiParser = new DirectComponentsFromUI(drawing, ifigs); uiParser.Parse(); backendParser = new HardCodedParserMain(uiParser.definedPoints, new List<GeometryTutorLib.ConcreteAST.Collinear>(), uiParser.definedSegments, uiParser.circles, true); }
public void InvokeParser() { parser = new GeometryTutorLib.TutorParser.HardCodedParserMain(points, collinear, segments, circles, true); }