Ejemplo n.º 1
0
        public string Text(string Separator, bool AlwaysDelimitTerminals)
        {
            string Result = "";
            int    n      = 0;
            Symbol Sym    = default(Symbol);

            for (n = 0; n <= m_Array.Count - 1; n++)
            {
                Sym     = m_Array[n];
                Result += (n == 0 ? "" : Separator) + Sym.Text(AlwaysDelimitTerminals);
            }

            return(Result);
        }
Ejemplo n.º 2
0
 public string Text(bool AlwaysDelimitTerminals)
 {
     return(m_Head.Text() + " ::= " + m_Handle.Text(" ", AlwaysDelimitTerminals));
 }