-
-
Save chris-hexx/0378d37f63cd83a9c3afbaada213a9cd to your computer and use it in GitHub Desktop.
console dump with Lark stack trace included
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\ProgramData\Anaconda3\python.exe R:/GEPyPlot/code/GMC_parser_test.py | |
2018-01-04 15:33:24,270 - root - INFO - program start | |
Traceback (most recent call last): | |
File "R:/GEPyPlot/code/GMC_parser_test.py", line 56, in <module> | |
parser=Parser() | |
File "R:\GEPyPlot\code\GMC_parser.py", line 122, in __init__ | |
self.p = Lark(open("gplus3.lark.txt").read(), start='start', parser="lalr", lexer="contextual") | |
File "R:\GEPyPlot\code\lark_master\lark\lark.py", line 155, in __init__ | |
self.parser = self._build_parser() | |
File "R:\GEPyPlot\code\lark_master\lark\lark.py", line 176, in _build_parser | |
return self.parser_class(self.lexer_conf, parser_conf, options=self.options) | |
File "R:\GEPyPlot\code\lark_master\lark\parser_frontends.py", line 43, in __init__ | |
self.lexer = ContextualLexer(lexer_conf.tokens, d, ignore=lexer_conf.ignore, always_accept=always_accept) | |
File "R:\GEPyPlot\code\lark_master\lark\lexer.py", line 215, in __init__ | |
self.root_lexer = Lexer(tokens, ignore=ignore) | |
File "R:\GEPyPlot\code\lark_master\lark\lexer.py", line 150, in __init__ | |
self.mres = build_mres(tokens) | |
File "R:\GEPyPlot\code\lark_master\lark\lexer.py", line 113, in build_mres | |
return _build_mres(tokens, len(tokens), match_whole) | |
File "R:\GEPyPlot\code\lark_master\lark\lexer.py", line 104, in _build_mres | |
mre = re.compile(u'|'.join(u'(?P<%s>%s)'%(t.name, t.pattern.to_regexp()+postfix) for t in tokens[:max_size])) | |
File "C:\ProgramData\Anaconda3\lib\re.py", line 233, in compile | |
return _compile(pattern, flags) | |
File "C:\ProgramData\Anaconda3\lib\re.py", line 301, in _compile | |
p = sre_compile.compile(pattern, flags) | |
File "C:\ProgramData\Anaconda3\lib\sre_compile.py", line 562, in compile | |
p = sre_parse.parse(p, flags) | |
File "C:\ProgramData\Anaconda3\lib\sre_parse.py", line 855, in parse | |
p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0) | |
File "C:\ProgramData\Anaconda3\lib\sre_parse.py", line 416, in _parse_sub | |
not nested and not items)) | |
File "C:\ProgramData\Anaconda3\lib\sre_parse.py", line 759, in _parse | |
raise source.error(err.msg, len(name) + 1) from None | |
sre_constants.error: redefinition of group name '__AUTODISP6' as group 102; was group 21 at position 2764 (line 6, column 2048) | |
Process finished with exit code 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment