Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Some lexing languages (e.g. Alex[1]) use regexp for matching tokens.

[1] http://www.haskell.org/alex/doc/html/regexps.html



Flex [1], too, uses regular expressions. However, the generated source that performs the actual tokenizing/lexing, does not need any library support for them as it is all implemented in the code. So even there lack of regex support in standard library would not be an issue.

[1] http://flex.sourceforge.net/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: