23 lines
344 B
Sed
23 lines
344 B
Sed
|
1i\
|
||
|
/* ops is converted into a test program for longs \
|
||
|
*/
|
||
|
/ISTART/d
|
||
|
s/FN/main/
|
||
|
/LSTART/c\
|
||
|
unsigned x=40234 , y= 301 , z= 30 ;
|
||
|
/[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/x/g
|
||
|
s/Y/8012/g
|
||
|
s/S/9/g
|
||
|
s/Z1/z/g
|
||
|
s/Z2/y/g
|
||
|
s/#/\\n/
|
||
|
s/@//
|