Inheritance: TokenStream, ICharScannerDebugSubject
コード例 #1
0
 // Expected BitSet / not BitSet
 public MismatchedCharException(char c, BitSet set_, bool matchNot, CharScanner scanner_) :
     base("Mismatched char", scanner_.getFilename(), scanner_.getLine(), scanner_.getColumn())
 {
     mismatchType = matchNot ? CharTypeEnum.NotSetType : CharTypeEnum.SetType;
     foundChar    = c;
     bset         = set_;
     scanner      = scanner_;
 }
コード例 #2
0
 // Expected BitSet / not BitSet
 public MismatchedCharException(char c, BitSet set_, bool matchNot, CharScanner scanner_)
     : base("Mismatched char", scanner_.getFilename(), scanner_.getLine(), scanner_.getColumn())
 {
     mismatchType = matchNot ? CharTypeEnum.NotSetType : CharTypeEnum.SetType;
     foundChar = c;
     bset = set_;
     scanner = scanner_;
 }
コード例 #3
0
 // Expected token / not token
 public MismatchedCharException(char c, char expecting_, bool matchNot, CharScanner scanner_) :
     base("Mismatched char", scanner_.getFilename(), scanner_.getLine(), scanner_.getColumn())
 {
     mismatchType = matchNot ? CharTypeEnum.NotCharType : CharTypeEnum.CharType;
     foundChar    = c;
     expecting    = expecting_;
     scanner      = scanner_;
 }
コード例 #4
0
 // Expected token / not token
 public MismatchedCharException(char c, char expecting_, bool matchNot, CharScanner scanner_)
     : base("Mismatched char", scanner_.getFilename(), scanner_.getLine(), scanner_.getColumn())
 {
     mismatchType = matchNot ? CharTypeEnum.NotCharType : CharTypeEnum.CharType;
     foundChar = c;
     expecting = expecting_;
     scanner = scanner_;
 }
コード例 #5
0
 // Expected range / not range
 public MismatchedCharException(char c, char lower, char upper_, bool matchNot, CharScanner scanner_) :
     base("Mismatched char", scanner_.getFilename(), scanner_.getLine(), scanner_.getColumn())
 {
     mismatchType = matchNot ? CharTypeEnum.NotRangeType : CharTypeEnum.RangeType;
     foundChar    = c;
     expecting    = lower;
     upper        = upper_;
     scanner      = scanner_;
 }
コード例 #6
0
 // Expected range / not range
 public MismatchedCharException(char c, char lower, char upper_, bool matchNot, CharScanner scanner_)
     : base("Mismatched char", scanner_.getFilename(), scanner_.getLine(), scanner_.getColumn())
 {
     mismatchType = matchNot ? CharTypeEnum.NotRangeType : CharTypeEnum.RangeType;
     foundChar = c;
     expecting = lower;
     upper = upper_;
     scanner = scanner_;
 }
コード例 #7
0
 public NoViableAltForCharException(char c, CharScanner scanner) :
     base("NoViableAlt", scanner.getFilename(), scanner.getLine(), scanner.getColumn())
 {
     foundChar = c;
 }
コード例 #8
0
ファイル: CharScanner.cs プロジェクト: walt-liuzw/iCalendar
 public ReflectionBasedTokenCreator(CharScanner owner, string tokenTypeName)
 {
     this.owner = owner;
     SetTokenType(tokenTypeName);
 }
コード例 #9
0
ファイル: CharScanner.cs プロジェクト: 0xb1dd1e/boo
			public ReflectionBasedTokenCreator(CharScanner owner, string tokenTypeName)
			{
				this.owner = owner;
				SetTokenType(tokenTypeName);
			}
コード例 #10
0
		public NoViableAltForCharException(char c, CharScanner scanner) :
					base("NoViableAlt", scanner.getFilename(), scanner.getLine(), scanner.getColumn())
		{
			foundChar = c;
		}