예제 #1
0
        static Formatter()
        {
            CommentContent     = new Discriminator("CommentContent");
            CommentStartSymbol = new Discriminator("CommentStartSymbol");
            CommentEndSymbol   = new Discriminator("CommentEndSymbol");

            StringLiteralContent     = new Discriminator("StringLiteralContent");
            StringLiteralStartSymbol = new Discriminator("StringLiteralStartSymbol");
            StringLiteralEndSymbol   = new Discriminator("StringLiteralEndSymbol");

            DataLiteralContent            = new Discriminator("DataLiteralContent");
            DsvLiteralTerminator          = new Discriminator("DsvLiteralTerminator");
            QuotedValueLiteralStartSymbol = new Discriminator("QuotedValueLiteralStartSymbol");
            QuotedValueLiteralEndSymbol   = new Discriminator("QuotedValueLiteralEndSymbol");

            NumberLiteralContent            = new Discriminator("NumberLiteralContent");
            NumberLiteralBasePrefix         = new Discriminator("NumberLiteralBasePrefix");
            NumberLiteralTypeModifierSuffix = new Discriminator("NumberLiteralTypeModifierSuffix");
        }
예제 #2
0
파일: Utokens.cs 프로젝트: kevlyons/Sarcasm
 public new UtokenText SetDiscriminator(Discriminator discriminator)
 {
     this.Discriminator = discriminator;
     return(this);
 }
예제 #3
0
파일: Utokens.cs 프로젝트: kevlyons/Sarcasm
 public UtokenValue SetDiscriminator(Discriminator discriminator)
 {
     this.Discriminator = discriminator;
     return(this);
 }