Using regex (Regular Expressions) in Parenscript

后端 未结 1 879
忘掉有多难
忘掉有多难 2021-01-27 16:36

I am trying out Parenscript. While trying to experiment with regex function, I get unexpected output. for example, the reference manual shows:

(regex \"foobar\")         


        
1条回答
  •  长情又很酷
    2021-01-27 17:22

    In a SBCL read-eval-print-loop:

    CL-USER> (in-package "PS")
    #
    
    PS> (ps (regex "foobar"))
    "/foobar/;"
    
    PS> (in-package "CL-USER")
    #
    
    cl-user> (ps:ps (ps:regex "foobar"))
    "/foobar/;"
    

    PS:PS is the Parenscript compiler as a macro operator.

    0 讨论(0)
提交回复
热议问题