Ver código fonte

Fixed comment

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.2
Erez Sh 3 anos atrás
pai
commit
e6bbfd16c0
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      lark/exceptions.py

+ 1
- 1
lark/exceptions.py Ver arquivo

@@ -155,7 +155,7 @@ class UnexpectedToken(ParseError, UnexpectedInput):
see: :ref:`ParserPuppet`.
"""
def __init__(self, token, expected, considered_rules=None, state=None, puppet=None, token_history=None):
# TODO considered_tokens and allowed can be figured out using state
# TODO considered_rules and expected can be figured out using state
self.line = getattr(token, 'line', '?')
self.column = getattr(token, 'column', '?')
self.pos_in_stream = getattr(token, 'pos_in_stream', None)


Carregando…
Cancelar
Salvar