added source trace comments

- Trace comments cover module items, decls, and stmts
- Added pseudo-lexer to Alex parser for monadic Position production
- Added Position to every DeclToken
- Removed Comment PackageItem
- Added CommentStmt and CommentDecl
- Fixed traversal skipping outer MIAttr ModuleItems
- Generally cleaned up Parser modules
This commit is contained in:
Zachary Snow
2020-01-30 22:17:17 -05:00
parent 9f180f91e5
commit dd0eb5981d
22 changed files with 339 additions and 200 deletions
+14
View File
@@ -4,4 +4,18 @@ module top;
x++;
$display(x);
end
initial begin
++x;
$display(x);
end
initial begin
repeat (0);
x++;
$display(x);
end
initial begin
repeat (0);
++x;
$display(x);
end
endmodule
+1 -1
View File
@@ -1,6 +1,6 @@
module top;
integer x = 0;
initial begin
initial repeat (4) begin
x = x + 1;
$display(x);
end