Skip to content

Commit ab2b74a

Browse files
do not create ply debug output and tables
1 parent a49da14 commit ab2b74a

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

sifter/grammar/grammar.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ def __init__(self) -> None:
3535
@staticmethod
3636
def make_parser(mod: Any) -> 'LRParser':
3737
return ply.yacc.yacc(
38-
module=mod
38+
module=mod,
39+
debug=False,
40+
write_tables=False
3941
)
4042

4143
def parse(self, rules: Text, tracking: int = 0) -> CommandList:

sifter/grammar/lexer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
class SieveLexer():
1919

2020
def __init__(self) -> None:
21-
self.lexer = ply.lex.lex(module=self)
21+
self.lexer = ply.lex.lex(
22+
module=self,
23+
debug=False
24+
)
2225
self.lexer.linestart = 0
2326

2427
def __iter__(self) -> Any:

0 commit comments

Comments
 (0)