mirror of https://github.com/zachjs/sv2v.git
support typedef forward declarations
This commit is contained in:
parent
1a6e0ce9df
commit
ad0db916cc
|
|
@ -736,6 +736,11 @@ NonDeclPackageItem :: { [PackageItem] }
|
|||
| "import" PackageImportItems ";" { map (uncurry Import) $2 }
|
||||
| "export" PackageImportItems ";" { map (Export . Just) $2 }
|
||||
| "export" "*" "::" "*" ";" { [Export Nothing] } -- "Nothing" being no restrictions
|
||||
| ForwardTypedef ";" { $1 }
|
||||
ForwardTypedef :: { [PackageItem] }
|
||||
: "typedef" "enum" Identifier { [] }
|
||||
| "typedef" "struct" Identifier { [] }
|
||||
| "typedef" "union" Identifier { [] }
|
||||
|
||||
PackageImportItems :: { [(Identifier, Maybe Identifier)] }
|
||||
: PackageImportItem { [$1] }
|
||||
|
|
|
|||
Loading…
Reference in New Issue