static void SyntaxScannerFullTest() { List <LexemDataCell> table = EnterTestPoint.LexemTableGeneration(); List <OutputTreeCell> tree = null; try { SyntaxScanner scanner = new SyntaxScanner(table); tree = scanner.DoAnalysis(); } catch (Exception ex) { Console.WriteLine("---ExceptionStafff---\n{0}\n", ex); } DrawOutputTree(tree); }
static void Main(string[] args) { EnterTestPoint.MovingMatrixTest(); Console.WriteLine("Test#1 - Success"); EnterTestPoint.RulesMatrixTest(); Console.WriteLine("Test#2 - Success"); EnterTestPoint.SymbolsStackTest(); Console.WriteLine("Test#3 - Success"); EnterTestPoint.SyntaxScannerFullTest(); Console.WriteLine("Test#4 - Success"); }