## How to do this with [acme | sam | sed ]  ?
# compound commands
# remove outermost pair of braces:  abcd(x+(y-z))efgh  --> abcdx+(y-z)efgh
         [ no idea :-( ]
# remove semicolon before // comments:  xyz;[tab][space]*//  --> xyz
         [ Edit /;[     ]*\/\// Edit s/;//      # find and remove semicolon
before // comments ]
# prefix to postfix operator: ++i --> i++
         [ Edit s/\+\+[a-zA-Z]+[0-9a-zA-Z]*/&++/ Edit s/\+\+/d]

thanks,
++pac

Reply via email to