瀏覽代碼

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)


Loading…
取消
儲存