Commit 9b7d003e by Zachary Snow

support for empty packages (resolves #9)

parent 4fd7b6c2
...@@ -570,7 +570,7 @@ DefparamAsgn :: { (LHS, Expr) } ...@@ -570,7 +570,7 @@ DefparamAsgn :: { (LHS, Expr) }
: LHS "=" Expr { ($1, $3) } : LHS "=" Expr { ($1, $3) }
PackageItems :: { [PackageItem] } PackageItems :: { [PackageItem] }
: PackageItem { $1 } : {- empty -} { [] }
| PackageItems PackageItem { $1 ++ $2 } | PackageItems PackageItem { $1 ++ $2 }
PackageItem :: { [PackageItem] } PackageItem :: { [PackageItem] }
: DeclTokens(";") { map Decl $ parseDTsAsDecls $1 } : DeclTokens(";") { map Decl $ parseDTsAsDecls $1 }
......
task fun;
endtask
function fun;
endfunction
package pop;
endpackage
module top;
endmodule
module top;
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