3

I use flex & lex a lot for stripping stuff from e-mail attachments in scritps. I wondered if there are moden versions and variants of the lex programs that have the perl REGEX extensions.

I know the boost libs support perl style but this is not quite what I am looking for.

Cheers

kingchris
  • 244
  • 4
  • 13

2 Answers2

3

Follow this article about lexing with perl.

David Schmitt
  • 2,185
  • 2
  • 15
  • 25
0

I found Pro Perl Parsing to be a good book on the topic, covers grammars and lexing themselves as well as different cpan modules.

Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448