forked from jasder/antlr
typo
This commit is contained in:
parent
1b5437aeab
commit
3a10724919
|
@ -281,8 +281,8 @@ class Parser (Recognizer):
|
||||||
if lexer is None:
|
if lexer is None:
|
||||||
if self.getTokenStream() is not None:
|
if self.getTokenStream() is not None:
|
||||||
tokenSource = self.getTokenStream().getTokenSource()
|
tokenSource = self.getTokenStream().getTokenSource()
|
||||||
if isinstance( tokenSource, Lexer ):
|
if isinstance( tokenSource, Lexer ):
|
||||||
lexer = tokenSource
|
lexer = tokenSource
|
||||||
if lexer is None:
|
if lexer is None:
|
||||||
raise UnsupportedOperationException("Parser can't discover a lexer to use")
|
raise UnsupportedOperationException("Parser can't discover a lexer to use")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue