ソースを参照

Fixed comment

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.2
Erez Sh 3年前
コミット
e6bbfd16c0
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      lark/exceptions.py

+ 1
- 1
lark/exceptions.py ファイルの表示

@@ -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)


読み込み中…
キャンセル
保存