slicc: improve support for prefix operations
authorDavid Hashe <david.hashe@amd.com>
Mon, 20 Jul 2015 14:15:18 +0000 (09:15 -0500)
committerDavid Hashe <david.hashe@amd.com>
Mon, 20 Jul 2015 14:15:18 +0000 (09:15 -0500)
commit93fff6f636b94524fd8c4d1f9d0e01cfcd695c50
treec8530fd4ac981398024aecc1d0cdf132d987dac2
parentee0d414fa8dac2371b439778374ec585b358e549
slicc: improve support for prefix operations

This patch fixes the type handling when prefix operations are used.  Previously
prefix operators would assume a void return type, which made it impossible to
combine prefix operations with other expressions.  This patch allows SLICC
programmers to use prefix operations more naturally.
src/mem/slicc/ast/OperatorExprAST.py