-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Continuing with my annoying preprocessor parsing! (I'm trying to parse a file that is like 30% preprocessor directives unfortunately....)
This parses:
module foo;
initial begin
if (a)
`FOO;
end
endmodule
But surprisingly this doesn't:
module foo;
initial begin
if (a)
`FOO;
else
b = c;
end
endmodule
Again, if that's difficult to do, don't worry. Workaround is:
module foo;
initial begin
if (a) begin
`FOO;
end else
b = c;
end
endmodule
(Which IMO the code should be doing already - optional begin/end is a footgun.)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working