소스 검색

Small fix

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.5.3
Erez Shinan 6 년 전
부모
커밋
b36b8165c7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      lark/parser_frontends.py

+ 1
- 1
lark/parser_frontends.py 파일 보기

@@ -127,7 +127,7 @@ class XEarley:
raise ValueError("Bad regexp in token %s: %s" % (t.name, regexp))
else:
if width == 0:
raise ValueError("Dynamic Earley doesn't allow zero-width regexps")
raise ValueError("Dynamic Earley doesn't allow zero-width regexps", t)

self.regexps[t.name] = re.compile(regexp)



불러오는 중...
취소
저장