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.
... More
version | 20210808+1 |
---|---|
license | other: BSD-AdClauseCustomized version of BSD-4-Clause |
repository | https://pkg.cppget.org/1/stable |
download | reflex-20210808+1.tar.gz |
sha256 | 27a76030a9ad4282d227f93ad50e372462f0ce2a1a322c3a3d6ea78e8d3cd02a |
project | reflex |
---|---|
url | invisible-island.net/reflex/reflex.html |
package-url | github.com/build2-packaging/reflex |
package-email | boris@codesynthesis.com |
topics | lexflexlexer |
Depends (1)
* | byacc >= 20210619 |
---|
Requires (1)
host |
Reviews
fail | 0 |
---|---|
pass | 1 |
Builds
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_fedora_40-gcc_14-bindist |
timestamp | 2025-09-18 06:06:50 UTC (06:23:46 hours ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-clang_17 |
timestamp | 2025-09-17 12:21:01 UTC (01 00:09:35 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-clang_17_libc++ |
timestamp | 2025-09-17 12:16:42 UTC (01 00:13:54 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-gcc_13 |
timestamp | 2025-09-17 12:12:49 UTC (01 00:17:47 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_ubuntu_24.04-gcc_13-bindist |
timestamp | 2025-09-16 23:06:04 UTC (01 13:24:32 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-microsoft-win32-msvc14.3 |
tgt config | windows_10-clang_18_llvm_msvc_17.10-static_O2 |
timestamp | 2025-09-16 23:02:11 UTC (01 13:28:25 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-gcc_14-ndebug_O3 |
timestamp | 2025-09-16 23:00:59 UTC (01 13:29:37 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-microsoft-win32-msvc14.3 |
tgt config | windows_10-clang_18_llvm_msvc_17.10-O2 |
timestamp | 2025-09-16 23:00:27 UTC (01 13:30:09 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-gcc_12-bindist |
timestamp | 2025-09-16 22:59:04 UTC (01 13:31:32 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-microsoft-win32-msvc14.3 |
tgt config | windows_10-clang_18_llvm_msvc_17.10 |
timestamp | 2025-09-16 22:53:45 UTC (01 13:36:51 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-w64-mingw32 |
tgt config | windows_10-gcc_13.2_mingw_w64-static_O2 |
timestamp | 2025-09-16 22:41:26 UTC (01 13:49:10 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-w64-mingw32 |
tgt config | windows_10-gcc_13.2_mingw_w64-O2 |
timestamp | 2025-09-16 22:38:49 UTC (01 13:51:47 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-w64-mingw32 |
tgt config | windows_10-gcc_13.2_mingw_w64 |
timestamp | 2025-09-16 22:34:59 UTC (01 13:55:37 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-microsoft-win32-msvc14.3 |
tgt config | windows_10-msvc_17.10-O2 |
timestamp | 2025-09-16 22:24:54 UTC (01 14:05:42 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-microsoft-win32-msvc14.3 |
tgt config | windows_10-msvc_17.10-static_O2 |
timestamp | 2025-09-16 22:22:51 UTC (01 14:07:45 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-gcc_14-static_O3 |
timestamp | 2025-09-16 22:22:34 UTC (01 14:08:02 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-microsoft-win32-msvc14.3 |
tgt config | windows_10-msvc_17.10 |
timestamp | 2025-09-16 22:19:16 UTC (01 14:11:20 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-microsoft-win32-msvc14.3 |
tgt config | windows_10-msvc_17.8-static_O2 |
timestamp | 2025-09-16 22:19:02 UTC (01 14:11:34 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-microsoft-win32-msvc14.3 |
tgt config | windows_10-msvc_17.8-O2 |
timestamp | 2025-09-16 22:17:50 UTC (01 14:12:46 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-gcc_14-O3 |
timestamp | 2025-09-16 22:17:25 UTC (01 14:13:11 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-gcc_14 |
timestamp | 2025-09-16 22:14:47 UTC (01 14:15:49 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-microsoft-win32-msvc14.3 |
tgt config | windows_10-msvc_17.8 |
timestamp | 2025-09-16 22:13:03 UTC (01 14:17:33 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-microsoft-win32-msvc14.3 |
tgt config | windows_10-clang_17_msvc_msvc_17.10 |
timestamp | 2025-09-16 22:10:01 UTC (01 14:20:35 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-freebsd13.3 |
tgt config | freebsd_13-clang_17 |
timestamp | 2025-09-16 21:55:40 UTC (01 14:34:56 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-freebsd14.1 |
tgt config | freebsd_14-clang_18-O3 |
timestamp | 2025-09-16 21:53:57 UTC (01 14:36:39 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-freebsd14.1 |
tgt config | freebsd_14-clang_18-static_O3 |
timestamp | 2025-09-16 21:49:38 UTC (01 14:40:58 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-freebsd14.1 |
tgt config | freebsd_14-clang_18 |
timestamp | 2025-09-16 21:48:32 UTC (01 14:42:04 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-clang_17 |
timestamp | 2025-09-16 21:47:25 UTC (01 14:43:11 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-clang_17_libc++ |
timestamp | 2025-09-16 21:46:52 UTC (01 14:43:44 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-gcc_13.1 |
timestamp | 2025-09-16 21:43:17 UTC (01 14:47:19 days ago) |
result | success | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-gcc_14-ndebug_O3 |
timestamp | 2025-09-15 23:59:00 UTC (02 12:31:36 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-gcc_14-O3 |
timestamp | 2025-09-15 23:57:22 UTC (02 12:33:14 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-gcc_14-static_O3 |
timestamp | 2025-09-15 23:55:42 UTC (02 12:34:54 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-gcc_14 |
timestamp | 2025-09-15 23:54:36 UTC (02 12:36:00 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-clang_18_libc++ |
timestamp | 2025-09-15 13:41:20 UTC (02 22:49:17 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-clang_18_libc++-static_O3 |
timestamp | 2025-09-15 13:40:46 UTC (02 22:49:50 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-clang_18-static_O3 |
timestamp | 2025-09-15 13:39:40 UTC (02 22:50:56 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-clang_18_libc++-O3 |
timestamp | 2025-09-15 13:38:35 UTC (02 22:52:01 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-clang_18-O3 |
timestamp | 2025-09-15 13:36:58 UTC (02 22:53:38 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | aarch64-linux-gnu |
tgt config | linux_debian_12-clang_18 |
timestamp | 2025-09-15 13:36:56 UTC (02 22:53:40 days ago) |
result | warning (update) | warning (install) | log | rebuild |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-clang_18 |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-clang_18-O3 |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-clang_18-static_O3 |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-clang_18_libc++ |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-clang_18_libc++-O3 |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_debian_12-clang_18_libc++-static_O3 |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-linux-gnu |
tgt config | linux_fedora_39-gcc_13-bindist |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-apple-darwin22.5.0 |
tgt config | macos_13-clang_15.0 |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-apple-darwin23.5.0 |
tgt config | macos_14-clang_15.0 |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-apple-darwin23.5.0 |
tgt config | macos_14-clang_15.0-O3 |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-apple-darwin23.5.0 |
tgt config | macos_14-clang_15.0-static_O3 |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-apple-darwin23.5.0 |
tgt config | macos_14-gcc_14_homebrew |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-apple-darwin23.5.0 |
tgt config | macos_14-gcc_14_homebrew-O3 |
result | unbuilt |
toolchain | public-0.17.0 |
---|---|
target | x86_64-apple-darwin23.5.0 |
tgt config | macos_14-gcc_14_homebrew-static_O3 |
result | unbuilt |
Changes
-- $Id: NEWS,v 1.58 2021/08/08 22:44:04 tom Exp $ ------------------------------------------------------------------------------- -- Changes by Thomas E. Dickey -- vile:txtmode ------------------------------------------------------------------------------- 2021/08/08 + add symbolic link for flex++ manpage in makefile "install" rule. > Boris Kolpackov: + add/use yylex_destroy() function like "new" flex which can be used to reset the lexer in order to re-execute it on different input. + fix a memory leak in gentab() 2021/08/06 + compiler-warning fixes 2021/08/04 + rewrote command-line options parsing, adding a table to map long options into the normal single-letter options. + updated config.guess, config.sub 2021/05/10 + modify skeleton to allow override of YY_BUF_SIZE + fix cppcheck warnings + update configure macros, e.g., for clang, BSDs, etc. CF_ADD_CFLAGS, CF_AR_FLAGS, CF_CC_ENV_FLAGS, CF_CHECK_CACHE, CF_CLANG_COMPILER, CF_CONST_X_STRING, CF_GCC_ATTRIBUTES, CF_GCC_WARNINGS, CF_INTEL_COMPILER, CF_LOCALE, CF_MAKE_DOCS, CF_MIXEDCASE_FILENAMES, CF_PATH_SYNTAX, CF_PROG_EXT, CF_WITHOUT_X, CF_WITH_MAN2HTML, CF_XOPEN_SOURCE + updated config.guess, config.sub 2020/07/15 + compiler-warning and shellcheck fixes + update configure macros, e.g., for clang, BSDs, etc. CF_ADD_CFLAGS, CF_AR_FLAGS, CF_CONST_X_STRING, CF_GCC_ATTRIBUTES, CF_GCC_WARNINGS, CF_PROG_CC, CF_WITHOUT_X + updated config.guess, config.sub 2019/11/23 + cleanup manual-page formatting. + add lower- and patch-version information to skeleton. + modify generated file to include unistd.h unless overridden, so that isatty() will be prototyped by default. + update configure macros, e.g., for clang, BSDs, etc. CF_CC_ENV_FLAGS, CF_CONST_X_STRING, CF_GCC_VERSION, CF_GCC_WARNINGS, CF_GNU_SOURCE, CF_POSIX_C_SOURCE, CF_POSIX_VISIBLE, CF_PROG_EXT, CF_PROG_GROFF, CF_PROG_LINT, CF_TRY_XOPEN_SOURCE, CF_WITH_MAN2HTML, CF_XOPEN_SOURCE + updated config.guess, config.sub 2017/12/31 + add a "FALLTHRU" comment to quiet compiler warning in vile's dcl-filt.l + update configure macros: CF_CC_ENV_FLAGS, CF_WITH_MAN2HTML + updated config.guess, config.sub 2017/11/11 + build-fix for rpms with Fedora 26. 2017/05/21 + amend mkscan.sh script to work with "make test" when building from other directories than the source-directory (report by Michael Tiernan) + add configure check for "ar" flags + add configure --with-man2html option + add "docs" rule to manpage + update configure macros, e.g., for clang and MingW CF_ACVERSION_CHECK, CF_ADD_CFLAGS, CF_ARG_OPTION, CF_CC_ENV_FLAGS, CF_DISABLE_ECHO, CF_GCC_ATTRIBUTES, CF_GCC_WARNINGS, CF_GNU_SOURCE, CF_INTEL_COMPILER, CF_MAKE_DOCS, CF_MIXEDCASE_FILENAMES, CF_POSIX_C_SOURCE, CF_PROG_CC, CF_PROG_EXT, CF_PROG_LINT, CF_XOPEN_SOURCE + updated config.guess, config.sub 2013/12/09 + minor compiler-warning fixes for the skeleton. + update configure macros, e.g., for clang and MingW + updated config.guess, config.sub 2010/09/06 + fix stricter compiler warnings, e.g., for 64-bits and gcc 4.1.2 with -Wconversion + remove unneeded "/" after $(DESTDIR) in Makefile.in, needed to install with Cygwin. 2010/06/27 + improve rename.sh, handling "FLEX" and "Flex" cases. + add configure checks for lint and tags programs. + add $DESTDIR to makefile. + drop mkdirs.sh, use "mkdir -p" + add build-scripts for RPM and Debian packages. + updates to configure script macros: + CF_ADD_CFLAGS, CF_ARG_OPTION, CF_INTEL_COMPILER, CF_POSIX_C_SOURCE, CF_XOPEN_SOURCE quoted params of ifelse() + CF_GCC_WARNINGS, change logic for warning options, to work with c89 wrapper for gcc + CF_GCC_VERSION, discard stderr, to work with c89 wrapper for gcc + CF_DISABLE_ECHO, uses different indent + updated config.guess, config.sub 2009/10/27 + add configure macro CF_XOPEN_SOURCE, to enable use of fileno() when compiling byacc output with c99. 2009/10/13 + more gcc warning fixes, including workaround for defective implementation of atttribute warn_unused_result. + change ccltbl[] to array of structs holding the reason why a character was added to a character class in addition to the character. 2009/09/02 + add patch-date to version message. + modify generated code to eliminate gcc -Wconversion warnings. + update utility scripts, using install-sh and mkdirs.sh + updated config.guess, config.sub 2008/11/17 + modify makefile rules and runtime handling of skeleton to make the C++ header file work using the same program prefix. + update FlexLexer.h to C++ standard header and namespace. + change default for --program-prefix option, to "re", making this install as "reflex". 2008/11/16 + add a missing ifdef for YY_NO_INPUT, needed to make the function actually removed. + move C-code supporting YY_FATAL_ERROR() in skeleton so that if the macro is overridden, then the support-code... More