Regular expressions

APaGeD includes a regular expression compiler that generates linear-time matchers[*].

Here is a short overview of the supported operators:

The lookahead is a speciality of the APaGeD implementation. It is a lot faster than general lookahead[*] but less powerful. For many situations it is powerful enough, though. For example, \*>/ matches any * that is not followed by a /.

The syntax for matching and non-matching brackets has been switched for convenience, since sub-matches are usually not used in lexemes.