Lines Matching refs:Input
721 function Match(const Input: IIntStream; const TokenType: Integer;
724 function MismatchIsUnwantedToken(const Input: IIntStream;
727 function MismatchIsMissingToken(const Input: IIntStream;
756 procedure MatchAny(const Input: IIntStream);
811 procedure Recover(const Input: IIntStream; const RE: ERecognitionException);
814 function RecoverFromMismatchedSet(const Input: IIntStream; in RecoverFromMismatchedSet()
817 procedure ConsumeUntil(const Input: IIntStream; const TokenType: Integer); overload;
820 procedure ConsumeUntil(const Input: IIntStream; const BitSet: IBitSet); overload;
878 function AlreadyParsedRule(const Input: IIntStream;
885 procedure Memoize(const Input: IIntStream; const RuleIndex,
901 property Input: IIntStream read GetInput; property
987 const Input: IIntStream): Integer of Object;
1021 function Predict(const Input: IIntStream): Integer;
1029 function SpecialStateTransition(const S: Integer; const Input: IIntStream): Integer;
1410 procedure ExtractInformationFromTreeNodeStream(const Input: IIntStream);
1450 property Input: IIntStream read FInput write FInput; property
2014 function GetCurrentInputSymbol(const Input: IIntStream): IANTLRInterface; virtual; in GetCurrentInputSymbol()
2023 procedure Mismatch(const Input: IIntStream; const TokenType: Integer;
2057 function RecoverFromMismatchedToken(const Input: IIntStream;
2081 function GetMissingSymbol(const Input: IIntStream;
2252 function Match(const Input: IIntStream; const TokenType: Integer; in Match()
2254 function MismatchIsUnwantedToken(const Input: IIntStream; in MismatchIsUnwantedToken()
2256 function MismatchIsMissingToken(const Input: IIntStream; in MismatchIsMissingToken()
2261 procedure MatchAny(const Input: IIntStream); virtual;
2269 procedure Recover(const Input: IIntStream; const RE: ERecognitionException); virtual;
2270 function RecoverFromMismatchedSet(const Input: IIntStream; in RecoverFromMismatchedSet()
2272 procedure ConsumeUntil(const Input: IIntStream; const TokenType: Integer); overload; virtual;
2273 procedure ConsumeUntil(const Input: IIntStream; const BitSet: IBitSet); overload; virtual;
2279 function AlreadyParsedRule(const Input: IIntStream; in AlreadyParsedRule()
2281 procedure Memoize(const Input: IIntStream; const RuleIndex,
2290 property Input: IIntStream read GetInput; property
2404 procedure NoViableAlt(const S: Integer; const Input: IIntStream);
2420 function Predict(const Input: IIntStream): Integer;
2423 const Input: IIntStream): Integer; virtual;
2472 property Input: ICharStream read FInput; property
2486 property Input: ITokenStream read FInput; property
2490 function GetCurrentInputSymbol(const Input: IIntStream): IANTLRInterface; override;
2491 function GetMissingSymbol(const Input: IIntStream;
2874 const Input: IIntStream);
2885 Nodes := Input as ITreeNodeStream;
3043 if Supports(Input, ICharStream) then
4180 function TBaseRecognizer.AlreadyParsedRule(const Input: IIntStream; in AlreadyParsedRule()
4185 StopIndex := GetRuleMemoization(RuleIndex, Input.Index);
4192 Input.Seek(StopIndex + 1); // jump to one past stop token
4206 procedure TBaseRecognizer.ConsumeUntil(const Input: IIntStream;
4211 TType := Input.LA(1);
4214 Input.Consume;
4215 TType := Input.LA(1);
4257 procedure TBaseRecognizer.ConsumeUntil(const Input: IIntStream;
4262 TType := Input.LA(1);
4265 Input.Consume;
4266 TType := Input.LA(1);
4313 const Input: IIntStream): IANTLRInterface; in TBaseRecognizer.GetCurrentInputSymbol()
4420 function TBaseRecognizer.GetMissingSymbol(const Input: IIntStream; in TBaseRecognizer.GetMissingSymbol()
4488 function TBaseRecognizer.Match(const Input: IIntStream; in TBaseRecognizer.Match()
4491 Result := GetCurrentInputSymbol(Input);
4492 if (Input.LA(1) = TokenType) then
4494 Input.Consume;
4503 Mismatch(Input, TokenType, Follow);
4504 Result := RecoverFromMismatchedToken(Input, TokenType, Follow);
4509 procedure TBaseRecognizer.MatchAny(const Input: IIntStream);
4513 Input.Consume;
4516 procedure TBaseRecognizer.Memoize(const Input: IIntStream; const RuleIndex,
4528 StopTokenIndex := Input.Index - 1;
4533 procedure TBaseRecognizer.Mismatch(const Input: IIntStream;
4536 if MismatchIsUnwantedToken(Input, TokenType) then
4537 raise EUnwantedTokenException.Create(TokenType, Input)
4539 if MismatchIsMissingToken(Input, Follow) then
4540 raise EMissingTokenException.Create(TokenType, Input, nil)
4542 raise EMismatchedTokenException.Create(TokenType, Input);
4545 function TBaseRecognizer.MismatchIsMissingToken(const Input: IIntStream; in TBaseRecognizer.MismatchIsMissingToken()
4574 if (Follow2.Member(Input.LA(1)) or Follow2.Member(TToken.EOR_TOKEN_TYPE)) then
4581 function TBaseRecognizer.MismatchIsUnwantedToken(const Input: IIntStream; in MismatchIsUnwantedToken()
4584 Result := (Input.LA(2) = TokenType);
4604 procedure TBaseRecognizer.Recover(const Input: IIntStream;
4609 if (FState.LastErrorIndex = Input.Index) then
4614 Input.Consume;
4615 FState.LastErrorIndex := Input.Index;
4618 ConsumeUntil(Input,FollowSet);
4622 function TBaseRecognizer.RecoverFromMismatchedSet(const Input: IIntStream; in TBaseRecognizer.RecoverFromMismatchedSet()
4625 if MismatchIsMissingToken(Input, Follow) then
4629 Result := GetMissingSymbol(Input, E, TToken.INVALID_TOKEN_TYPE, Follow);
4639 function TBaseRecognizer.RecoverFromMismatchedToken(const Input: IIntStream; in RecoverFromMismatchedToken()
4645 if MismatchIsUnwantedToken(Input, TokenType) then
4647 E := EUnwantedTokenException.Create(TokenType, Input);
4649 Input.Consume; // simply delete extra token
4653 Result := GetCurrentInputSymbol(Input);
4654 Input.Consume; // move past ttype token as if all were ok
4659 if MismatchIsMissingToken(Input, Follow) then
4662 Result := GetMissingSymbol(Input, E, TokenType, Follow);
4663 E := EMissingTokenException.Create(TokenType, Input, Result);
4669 raise EMismatchedTokenException.Create(TokenType, Input);
5119 procedure TDFA.NoViableAlt(const S: Integer; const Input: IIntStream);
5127 NVAE := ENoViableAltException.Create(Description, FDecisionNumber, S, Input);
5133 function TDFA.Predict(const Input: IIntStream): Integer; in Predict()
5139 Mark := Input.Mark; // remember where decision started in input
5147 S := FSpecialStateTransitionHandler(Self, SpecialState, Input);
5150 NoViableAlt(S, Input);
5153 Input.Consume;
5164 C := Char(Input.LA(1)); // -1 == \uFFFF, all tokens fit in 65000 space
5177 Input.Consume;
5186 NoViableAlt(S, Input);
5190 Input.Consume;
5198 Input.Consume;
5210 NoViableAlt(S, Input);
5214 Input.Rewind(Mark);
5230 const Input: IIntStream): Integer;
5639 const Input: IIntStream): IANTLRInterface; in TParser.GetCurrentInputSymbol()
5649 function TParser.GetMissingSymbol(const Input: IIntStream; in GetMissingSymbol()