public void WriteTerminalToken(Token token, int depth) { string initSpaces = WriterHelper.GetSpacesDepth(depth); _streamWriter.Write(initSpaces + "<" + token.GetTokenTypeName() + "> "); _streamWriter.Write(token.OutputValue); _streamWriter.WriteLine(" </" + token.GetTokenTypeName() + ">"); }
public void WriteTokenEnd(string compUnit, int depth) { string initSpaces = WriterHelper.GetSpacesDepth(depth); _streamWriter.WriteLine(initSpaces + "</" + compUnit + ">"); }
public void WriteTokenStart(string compUnit, int depth) { string initSpaces = WriterHelper.GetSpacesDepth(depth); Console.WriteLine(initSpaces + "<" + compUnit + ">"); }