mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
a070b1eb31
This is basically the same concept as lex, except this time it doesn't turn your code inside out, and it generates actual C code to parse the expressions (not tables), and the resulting code is usually about 2 times faster than flex.
7 lines
405 B
Plaintext
7 lines
405 B
Plaintext
re2c is a tool for generating C-based recognizers from regular
|
|
expressions. re2c-based scanners are efficient: for programming
|
|
languages, given similar specifications, an re2c-based scanner is
|
|
typically almost twice as fast as a flex-based scanner with little or no
|
|
increase in size (possibly a decrease on cisc architectures). Indeed,
|
|
re2c-based scanners are quite competitive with hand-crafted ones.
|