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