コード例 #1
0
 private void ClearTables()
 {
     OutputTokens.Clear();
     OutputIdentifiers.Clear();
     OutputConstants.Clear();
     OutputErrors.Clear();
 }
コード例 #2
0
        private void ExecuteRun(object obj)
        {
            ClearTables();
            var output = lexer.Run(ProgramText);

            OutputTokens      = OutputTokens.CopyFrom(output.outputTokens);
            OutputIdentifiers = OutputIdentifiers.CopyFrom(output.outputIdentifiers);
            OutputConstants   = OutputConstants.CopyFrom(output.outoutConstans);
            OutputErrors      = OutputErrors.CopyFrom(output.errors, parser.Process(output.outputTokens));
            OutputText        = parser.Rezult;
        }