Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
sv2v
Commits
9b7d003e
Commit
9b7d003e
authored
Aug 07, 2019
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support for empty packages (resolves #9)
parent
4fd7b6c2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletions
+11
-1
src/Language/SystemVerilog/Parser/Parse.y
+1
-1
test/basic/empty_constructs.sv
+8
-0
test/basic/empty_constructs.v
+2
-0
No files found.
src/Language/SystemVerilog/Parser/Parse.y
View file @
9b7d003e
...
@@ -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 }
...
...
test/basic/empty_constructs.sv
0 → 100644
View file @
9b7d003e
task
fun
;
endtask
function
fun
;
endfunction
package
pop
;
endpackage
module
top
;
endmodule
test/basic/empty_constructs.v
0 → 100644
View file @
9b7d003e
module
top
;
endmodule
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment