public Item(SourcePart sourcePart, IScannerTokenType type)
 {
     SourcePart = sourcePart;
     Type = type;
 }
 public Exception(SourcePosn sourcePosn, IScannerTokenType syntaxError)
 {
     SourcePosn = sourcePosn;
     SyntaxError = syntaxError;
 }
 IItem CreateAndAdvance(int length, IScannerTokenType type)
 {
     var result = new Item(SourcePart.Span(SourcePosn, length), type);
     Advance(length);
     return result;
 }
示例#4
0
 public LexerItem(IScannerTokenType scannerTokenType, Func<SourcePosn, int?> match)
 {
     ScannerTokenType = scannerTokenType;
     Match = match;
 }