]> git.nickg.me.uk Git - nvc.git/commit
vhpi: Support EnumLiterals
authorSean Anderson <seanga2@gmail.com>
Sun, 11 Jun 2023 19:01:05 +0000 (15:01 -0400)
committerNick Gasson <nick@nickg.me.uk>
Sun, 18 Jun 2023 07:51:44 +0000 (08:51 +0100)
commitf1317b7a63d051ab672d42222fffde42d6983a0e
tree935ef4fc3897ff1cde5806d4dc451c99c1aefdb5
parent1e2237436cfbb4bde2f7a15ac8a70623a4319d6f
vhpi: Support EnumLiterals

Add support for the various *Literals properties of enums. Although
`EnumLiteral`s are generalizations of both `expr`s and `decl`s, we only
really support single-inheritance at the moment. Make c_enumLiteral a
subtype of c_abstractDecl, since there are more properties in `decl`s
than in `expr`s. This should be the only exception in this area we need
to make, since other literals aren't generalizations of decl.
src/vhpi/vhpi-model.c
test/regress/gold/vhpi1.txt
test/vhpi/vhpi1.c