1 using System;
2 using System.Collections;
3
4
5
6
7
8 namespace System.Lex
9 {
10 public abstract class ParsingLog
11 {
12 public ParsingLog() :
13 maxLineLength(80)
14 {
15 }
16 public ParsingLog(int maxLineLength_) :
17 maxLineLength(maxLineLength_)
18 {
19 }
20 public virtual ~ParsingLog()
21 {
22 }
23 public abstract void IncIndent();
24 public abstract void DecIndent();
25 public abstract void WriteBeginRule(const ustring& ruleName);
26 public abstract void WriteEndRule(const ustring& ruleName);
27 public abstract void WriteTry(const ustring& s);
28 public abstract void WriteSuccess(const ustring& match);
29 public abstract void WriteFail();
30 public virtual int MaxLineLength() const
31 {
32 return maxLineLength;
33 }
34 private int maxLineLength;
35 }
36 }