Example #1
0
        void LogToTable(List <string> stack, BottomUpTable.Connotial connotial, List <string> source)
        {
            // Log output //
            if (Out.LogState >= Out.State.LogDebug)
            {
                Out.Log(Out.State.LogDebug, "=========Dumb LOG:============");
                Out.Log(Out.State.LogDebug, "Stack: ");
                for (int i = 0; i < stack.Count - 1; i++)
                {
                    BottomUpTable.Connotial connotial2 =
                        table.ConnotialBetweenTerminals(processValue(stack[i]), processValue(stack[i + 1]));
                    string ConnotialString = table.ConnotialToString(connotial2);
                    Out.Log(Out.State.LogDebug, ConnotialString + stack[i] + " ");
                }
                Out.Log(Out.State.LogDebug, table.ConnotialToString(connotial) + stack[stack.Count - 1]);
                Out.Log(Out.State.LogDebug, "Connotial: " + table.ConnotialToString(connotial));
                Out.Log(Out.State.LogDebug, "Source Code: ");
                for (int i = 0; i < lexems.Count - 1; i++)
                {
                    BottomUpTable.Connotial connotial2 =
                        table.ConnotialBetweenTerminals(processValue(lexems[i]), processValue(lexems[i + 1]));
                    string ConnotialString = table.ConnotialToString(connotial2);
                    Out.Log(Out.State.LogDebug, ConnotialString + lexems[i] + " ");
                }
                Out.Log(Out.State.LogDebug, "[ ]" + lexems[lexems.Count - 1]);
            }

            // HTML output //
            string stackLine     = ListToString(stack);
            string connotialLine = table.ConnotialToString(connotial);
            string lexemsLine    = ListToString(lexems);

            htmlTable.AddLine(stackLine, connotialLine, lexemsLine);
        }
Example #2
0
        private void LogToHTMLTable()
        {
            string stackLine  = ListToString(this.stack);
            string polizLine  = ListToString(this.poliz);
            string lexemsLine = ListToString(this.lexems);

            htmlTable.AddLine(polizLine, stackLine, lexemsLine);
        }