Comment detail

/*コメント*/を取り除く (Nested Flatten)

This comment is reply for 585 es: shiroさんの"なんでも再帰"(htt...(/*コメント*/を取り除く). Go to thread root.

1
2
3
4
5
6
7
8
(define (remove-comment str)
  (receive (ss cs) (string-scan str "/*" 'both)
           (if ss
               (string-append ss (receive (se ce) (string-scan cs "*/" 'both)
                                          (if se
                                              (remove-comment ce)
                                              "")))
               str)))

Index

Feed

Other

Link

Pathtraq

loading...