Home | History | Annotate | Download | only in antlr3

Lines Matching refs:ttype

197     def match(self, input, ttype, follow):
199 Match current input symbol against ttype. Attempt
212 if self.input.LA(1) == ttype:
221 matchedSymbol = self.recoverFromMismatchedToken(input, ttype, follow)
232 def mismatchIsUnwantedToken(self, input, ttype):
233 return input.LA(2) == ttype
668 def recoverFromMismatchedToken(self, input, ttype, follow):
681 ttype then it is ok to 'insert' the missing token, else throw
702 if self.mismatchIsUnwantedToken(input, ttype):
703 e = UnwantedTokenException(ttype, input)
715 # move past ttype token as if all were ok
721 inserted = self.getMissingSymbol(input, e, ttype, follow)
722 e = MissingTokenException(ttype, input, inserted)
729 e = MismatchedTokenException(ttype, input)
811 ttype = input.LA(1)
812 while ttype != EOF and ttype not in tokenTypes:
814 ttype = input.LA(1)