using System; using System.Text; using System.IO; namespace Tools { public class GenBase { public ErrorHandler erh; protected GenBase(ErrorHandler eh) { erh = eh; } protected TextWriter m_outFile; protected Encoding m_scriptEncoding = Encoding.ASCII; protected bool toupper = false; protected string ScriptEncoding { set { m_scriptEncoding = Encoding.ASCII; } } public string m_outname; // convenience functions protected int Braces(int a,string b,ref int p,int max) { int rv = a; int quote = 0; for (;p0) { buf=inf.ReadLine(); max=buf.Length; if (max==0) Error(47,q,"EOF in action or class def??"); p=0; rv += '\n'; brack = Braces(brack,buf,ref p,max); rv += buf.Substring(0,p); } return rv; } // convenience functions public bool White(string buf, ref int offset,int max) { while (offset