Example #1
0
        //#endregion

        public override string ToString()
        {
            if (this.Name != null)
            {
                return(string.Format("{0}{3}{4}:{1};{2}{5}", OilexerGrammarCore.EncodePrim(this.Literal.Value), this.Name, this.ToStringFurtherOptions(), this.Counter ? "#" : string.Empty, this.IsFlag ? "!" : string.Empty, this.RepeatOptions));
            }
            else
            {
                return(string.Format("{0}{2}{3}{1}{4}", OilexerGrammarCore.EncodePrim(this.Literal.Value), this.ToStringFurtherOptions(), this.Counter ? "#" : string.Empty, this.IsFlag ? "!" : string.Empty, this.RepeatOptions));
            }
        }
Example #2
0
        //#endregion

        public override string ToString()
        {
            return(string.Format("{0}{1}", OilexerGrammarCore.EncodePrim(this.Value), base.ToString()));
        }
 public override string ToString()
 {
     return(string.Format("{2}{0}{1}", OilexerGrammarCore.EncodePrim(this.Value), base.ToString(), this.CaseInsensitive ? "@" : string.Empty));
 }