ack/lang/cem/ctest/ctgen/ec.cem.g

112 lines
2.6 KiB
Plaintext
Raw Normal View History

1985-02-06 21:25:27 +00:00
'0' + '1'
'0' - '1'
'0' / '1'
'0' % '1'
'0' * '1'
'0' & '1'
'0' | '1'
'0' ^ '1'
'0' || '1'
'0' && '1'
'0' << 4
'0' >> 4
-'0'
!'0'
~'0'
'0' == '1'
'0' != '1'
'0' <= '1'
'0' >= '1'
'0' < '1'
'0' > '1'
'0' ? '0' : '1'
x = '0' 48
x += '0' 58
1987-02-24 10:15:46 +00:00
x -= '0' -38
1985-02-06 21:25:27 +00:00
x /= '0' 0
x %= '0' 10
1987-02-24 10:15:46 +00:00
x *= '0' -32
1985-02-06 21:25:27 +00:00
x &= '0' 0
x |= '0' 58
x ^= '0' 58
1987-02-24 10:15:46 +00:00
x <<= 4 -96
1985-02-06 21:25:27 +00:00
x >>= 4 0
x ++ 11
x -- 9
-- x 9
++ x 11
y = ( '0' + '1' ) 97
1987-02-24 10:15:46 +00:00
y = ( '0' - '1' ) -1
1985-02-06 21:25:27 +00:00
y = ( '0' / '1' ) 0
y = ( '0' % '1' ) 48
y = ( '0' * '1' ) 48
y = ( '0' & '1' ) 48
y = ( '0' | '1' ) 49
y = ( '0' ^ '1' ) 1
y = ( '0' || '1' ) 1
y = ( '0' && '1' ) 1
y = ( '0' << 4 ) 0
y = ( '0' >> 4 ) 3
1987-02-24 10:15:46 +00:00
y = ( -'0' ) -48
1985-02-06 21:25:27 +00:00
y = ( !'0' ) 0
1987-02-24 10:15:46 +00:00
y = ( ~'0' ) -49
1985-02-06 21:25:27 +00:00
y = ( '0' == '1' ) 0
y = ( '0' != '1' ) 1
y = ( '0' <= '1' ) 1
y = ( '0' >= '1' ) 0
y = ( '0' < '1' ) 1
y = ( '0' > '1' ) 0
y = ( '0' ? '0' : '1' ) 48
y = ( x = '0' ) 48 48
y = ( x += '0' ) 58 58
1987-02-24 10:15:46 +00:00
y = ( x -= '0' ) -38 -38
1985-02-06 21:25:27 +00:00
y = ( x /= '0' ) 0 0
y = ( x %= '0' ) 10 10
1987-02-24 10:15:46 +00:00
y = ( x *= '0' ) -32 -32
1985-02-06 21:25:27 +00:00
y = ( x &= '0' ) 0 0
y = ( x |= '0' ) 58 58
y = ( x ^= '0' ) 58 58
1987-02-24 10:15:46 +00:00
y = ( x <<= 4 ) -96 -96
1985-02-06 21:25:27 +00:00
y = ( x >>= 4 ) 0 0
y = ( x ++ ) 11 10
y = ( x -- ) 9 10
y = ( -- x ) 9 9
y = ( ++ x ) 11 11
yes if ( '0' + '1' ) yes() ; else no()
yes if ( '0' - '1' ) yes() ; else no()
no if ( '0' / '1' ) yes() ; else no()
yes if ( '0' % '1' ) yes() ; else no()
yes if ( '0' * '1' ) yes() ; else no()
yes if ( '0' & '1' ) yes() ; else no()
yes if ( '0' | '1' ) yes() ; else no()
yes if ( '0' ^ '1' ) yes() ; else no()
yes if ( '0' || '1' ) yes() ; else no()
yes if ( '0' && '1' ) yes() ; else no()
yes if ( '0' << 4 ) yes() ; else no()
yes if ( '0' >> 4 ) yes() ; else no()
yes if ( -'0' ) yes() ; else no()
no if ( !'0' ) yes() ; else no()
yes if ( ~'0' ) yes() ; else no()
no if ( '0' == '1' ) yes() ; else no()
yes if ( '0' != '1' ) yes() ; else no()
yes if ( '0' <= '1' ) yes() ; else no()
no if ( '0' >= '1' ) yes() ; else no()
yes if ( '0' < '1' ) yes() ; else no()
no if ( '0' > '1' ) yes() ; else no()
yes if ( '0' ? '0' : '1' ) yes() ; else no()
yes if ( x = '0' ) yes() ; else no() 48
yes if ( x += '0' ) yes() ; else no() 58
1987-02-24 10:15:46 +00:00
yes if ( x -= '0' ) yes() ; else no() -38
1985-02-06 21:25:27 +00:00
no if ( x /= '0' ) yes() ; else no() 0
yes if ( x %= '0' ) yes() ; else no() 10
1987-02-24 10:15:46 +00:00
yes if ( x *= '0' ) yes() ; else no() -32
1985-02-06 21:25:27 +00:00
no if ( x &= '0' ) yes() ; else no() 0
yes if ( x |= '0' ) yes() ; else no() 58
yes if ( x ^= '0' ) yes() ; else no() 58
1987-02-24 10:15:46 +00:00
yes if ( x <<= 4 ) yes() ; else no() -96
1985-02-06 21:25:27 +00:00
no if ( x >>= 4 ) yes() ; else no() 0
yes if ( x ++ ) yes() ; else no() 11
yes if ( x -- ) yes() ; else no() 9
yes if ( -- x ) yes() ; else no() 9
yes if ( ++ x ) yes() ; else no() 11