Den tor. 14. feb. 2019 kl. 16.16 skrev Greg Hendershott <
greghendersh...@gmail.com>:

>
> When I do use regexps in Racket, I almost always use them with `match`
> and the `pregexp` pattern, to bind the groups to identifiers.
>
> There is some space between trivial regexps and a full/"real" parser.
> Something like the `rx` macro, and it's also a match pattern, is
> something I could imagine using.
>

The lexer allows regular expressions in s-expression form.

https://docs.racket-lang.org/parser-tools/Lexers.html?q=lexer#%28form._%28%28lib._parser-tools%2Flex..rkt%29._lexer%29%29

It's not at easy to use as standard #rx and #px expressions though.

/Jens Axel

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to