Pyverilog icon indicating copy to clipboard operation
Pyverilog copied to clipboard

Attribute error in parser

Open KatCe opened this issue 2 years ago • 0 comments

Hello, the following file could not be parsed:

https://github.com/KatCe/pyverilog_issue_125/blob/main/picorv32_sv2v_out.v

Got the following error:

Pyverilog/pyverilog/vparser/parser.py", line 1589, in p_if_statement_woelse
    p[0].end_lineno = p[5].end_lineno
AttributeError: 'ForStatement' object has no attribute 'end_lineno'

Pyverilog commit: 81838bc463d17148ef6872af34eb27585ee349ba


My setup: Python 3.9.5 iverilog/focal,now 10.3-1build1 amd64 [installed] Name: Jinja2 Version: 3.1.2 Name: ply Version: 3.11

KatCe avatar Oct 15 '23 18:10 KatCe