Closed fred-vogt closed 4 years ago
It would seem that optional export code comments left debug=True when parsing.
debug=True
def parse(self, s): return self.yacc.parse(s, lexer=Lexer()) # => def parse(self, s, export_comments=None): return self.yacc.parse(s, lexer=Lexer(export_comments=export_comments), debug=True)
Use version 0.4.0 or older.
requirements.txt:
pyhcl==0.4.0
PLY: PARSE DEBUG START State : 0 Stack : . LexToken(IDENTIFIER,'...',...) Action : Shift and goto state 7
@virtuald - This can be closed. Looks like it was fixed in PR #65.
It would seem that optional export code comments left
debug=True
when parsing.65 fixes it.
Workaround
Use version 0.4.0 or older.
requirements.txt:
Output