You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello all, many thanks for developing this great library. It has been very exciting using it to build our tool (https://github.com/pleroux0/vcd_assert).
Would someone kindly help me understand why using until inside of star not allow my grammar to function correctly?
I am trying to parse verilog modules but ignore everything internal to the module except for module instantiations (and sdf_annotation which is still to be added).
The rule,
star<
until<module_instantiation>
>,
in the following grammar excerpt fails to parse theendmodule_keyword (in module_declaration).
The rule until<endmodule_keyword> works as expected when until<module_instantiation> is not wrapped in star.
Ideally I would want to have something like:
This discussion was converted from issue #124 on December 09, 2020 09:59.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello all, many thanks for developing this great library. It has been very exciting using it to build our tool (https://github.com/pleroux0/vcd_assert).
Would someone kindly help me understand why using
until
inside ofstar
not allow my grammar to function correctly?I am trying to parse verilog modules but ignore everything internal to the module except for module instantiations (and sdf_annotation which is still to be added).
The rule,
in the following grammar excerpt fails to parse the
endmodule_keyword
(inmodule_declaration
).The rule
until<endmodule_keyword>
works as expected whenuntil<module_instantiation>
is not wrapped instar
.Ideally I would want to have something like:
or
Any help in the matter would be greatly appreciated.
Kind Regards
Calvin
Beta Was this translation helpful? Give feedback.
All reactions