Relocalized fast lexical analyzer generator
reflex
is a variant of flex
, a tool for generating scanners (programs
which recognize lexical patterns in text).
It reads the given input files for a description of a scanner to generate. The
description is in the form of pairs of regular expressions and C code, called
rules. Reflex generates as output a C source file, lex.yy.c
, which defines a
routine yylex()
. When this routine is called, it analyzes its input for
occurrences of the regular expressions. Whenever it finds one, it executes the
corresponding C code.
reflex
is based on flex
2.5.4a, and unlike so-called "new" flex
, remains
compatible with POSIX lex
.
Note that the reflex
executable provides build2
metadata.
license | other: BSD-AdClause |
---|---|
project | reflex |
url | invisible-island.net/reflex/reflex.html |
topics | lexflexlexer |
1 Version
version | 20210808+1 |
---|---|
repository | https://pkg.cppget.org/1/stable |
depends | 1; *byacc |
requires | 1; host |
reviews | +1 |