> scons build/ALPHA_SE/tests/fast/quick/50.memtest/alpha/linux/memtest-ruby
> RUBY=True
>
>  File 
> "/afs/cs.wisc.edu/p/multifacet/users/drh5/gem5_latest/src/mem/slicc/symbols/Type.py",
> line 433
>
>    init = ' = %s_FIRST' % self.c_ident if i == 0 else ''
>
>                                         ^
>
> SyntaxError: invalid syntax
>
> Any ideas?

It's the conditional expression (the if i == 0 else ..." part.
Just do
init = ''
if i == 0:
    init = ' = %s_FIRST' % self.c_ident

My bad.  conditional expressions were new in python 2.5 so I shouldn't
have added it anyway.


  Nate
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to