Commit 8d61bcdc authored by Fabrice Salvaire's avatar Fabrice Salvaire

Parser: changed lextab parsetab name

parent 35b4d3be
......@@ -2,6 +2,8 @@
# Build files
__pycache__
_lextab.py
_parsetab.py
lextab.py
parser.out
parsetab.py
......
......@@ -222,6 +222,7 @@ class GcodeLexerMixin:
module=self,
reflags=int(re.VERBOSE + re.IGNORECASE),
optimize=1,
lextab='_lextab',
**kwargs,
)
......
......@@ -54,6 +54,8 @@ __all__ = [
####################################################################################################
from pathlib import Path
# https://rply.readthedocs.io/en/latest/
from ply import yacc
......@@ -367,8 +369,10 @@ class GcodeParserMixin:
self.tokens = self._lexer.tokens
self._parser = yacc.yacc(
module=self,
# debug=True,
optimize=0,
debug=False,
optimize=1,
tabmodule='_parsetab',
# outputdir=Path(__file__).parent.joinpath('ply'),
)
##############################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment