ack/lang/cem/ctest/ctgen/el.sed

23 lines
344 B
Sed
Raw Permalink Normal View History

1985-02-06 21:25:27 +00:00
1i\
/* ops is converted into a test program for longs \
*/
/LSTART/d
s/FN/main/
/ISTART/c\
long x=100234 , y= -301 , z= 0 ;
/[XYZS]/s/.*/& ; printf("%s#","&"@) ;/
1988-07-07 14:19:16 +00:00
/Z1/s/#/ %ld&/
1985-02-06 21:25:27 +00:00
/Z1/s/@/, Z1&/
1988-07-07 14:19:16 +00:00
/Z2/s/#/ %ld&/
1985-02-06 21:25:27 +00:00
/Z2/s/@/, Z2&/
/Z1/s/^/Z1 = 10 ; /
/Z2/s/^/Z2 = 0100 ; /
/[XYZS]/s/^/ /
s/X/x/g
s/Y/16329/g
s/S/9/g
s/Z1/z/g
s/Z2/y/g
s/#/\\n/
s/@//