mem-ruby: SLICC-allow expressions in is_valid

Currently, the is_valid statement in slicc requires that there is a
variable passed in as the only parameter. As far as I can tell, there's
no reason not to allow a more flexible expression. If we allow expr
instead of var, then we can eliminate unused variable warnings more

For instance, the following code won't compile with
TBE tbe := getTBE(...);

However, with this changeset we can fix the problem by using the
following code:

Change-Id: I38a9f0dff9e942a387a8b2de655380d1af82afb8
Signed-off-by: Jason Lowe-Power <>
Reviewed-by: Bobby Bruce <>
Tested-by: kokoro <>
Maintainer: Bobby Bruce <>
1 file changed