Commit cd45696a by Zachary Snow

parse alternate spacings of sense star

parent c17d8599
......@@ -1173,6 +1173,9 @@ CycleDelay :: { Expr }
EventControl :: { Sense }
: "@" "(" Senses ")" { $3 }
| "@" "(*)" { SenseStar }
| "@" "(" "*" ")" { SenseStar }
| "@" "(*" ")" { SenseStar }
| "@" "(" "*)" { SenseStar }
| "@*" { SenseStar }
| "@" Identifier { Sense $ LHSIdent $2 }
Senses :: { Sense }
......
module top;
`define TEST(sense) always sense $display(`"sense %b`", x);
reg x, y;
`TEST(@*)
`TEST(@x)
`TEST(@y)
`TEST(@ ( * ))
`TEST(@ ( *))
`TEST(@ (* ))
`TEST(@ (*))
`TEST(@( * ))
`TEST(@( *))
`TEST(@(* ))
`TEST(@(*))
initial x = 1;
endmodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment