ack/lang/cem/ctest/ctgen/ec.sed
1985-02-06 21:25:27 +00:00

23 lines
342 B
Sed

1i\
/* ops is converted into a test program for local characters \
*/
/LSTART/d
s/FN/main/
/ISTART/c\
char x=10 , y= 0100 ;
/[XYZS]/s/.*/& ; printf("%s#","&"@) ;/
/Z1/s/#/ %d&/
/Z1/s/@/, Z1&/
/Z2/s/#/ %d&/
/Z2/s/@/, Z2&/
/Z1/s/^/Z1 = 10 ; /
/Z2/s/^/Z2 = 0100 ; /
/[XYZS]/s/^/ /
s/X/'0'/g
s/Y/'1'/g
s/S/4/g
s/Z1/x/g
s/Z2/y/g
s/#/\\n/
s/@//