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_ubuntu_24.04-gcc_13-bindist |
| timestamp | 2025-12-13 07:27:47 UTC (09:41 minutes 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-12-13 07:20:32 UTC (16:56 minutes 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-12-13 07:14:49 UTC (22:39 minutes 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-12-13 07:10:14 UTC (27:15 minutes 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-12-13 07:05:09 UTC (32:19 minutes 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-12-13 07:04:47 UTC (32:41 minutes 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-12-13 06:38:50 UTC (58:38 minutes 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-12-13 06:37:46 UTC (59:43 minutes 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-12-13 06:31:38 UTC (01:05:50 hours 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-12-13 06:13:02 UTC (01:24:26 hours 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-12-13 06:04:40 UTC (01:32:48 hours 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-12-13 06:00:49 UTC (01:36:39 hours 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-12-13 05:59:36 UTC (01:37:52 hours ago) |
| result | success | log | rebuild |
| toolchain | public-0.17.0 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_12-gcc_14 |
| timestamp | 2025-12-13 05:55:06 UTC (01:42:22 hours 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-12-13 05:49:00 UTC (01:48:28 hours 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-12-13 05:45:25 UTC (01:52:03 hours ago) |
| result | success | log | rebuild |
| toolchain | public-0.17.0 |
|---|---|
| target | x86_64-freebsd13.3 |
| tgt config | freebsd_13-clang_17 |
| timestamp | 2025-12-13 05:22:28 UTC (02:15:00 hours ago) |
| result | success | log | rebuild |
| toolchain | public-0.17.0 |
|---|---|
| target | x86_64-freebsd14.1 |
| tgt config | freebsd_14-clang_18-O3 |
| timestamp | 2025-12-13 05:11:46 UTC (02:25:42 hours 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-12-13 05:06:04 UTC (02:31:24 hours ago) |
| result | success | log | rebuild |
| toolchain | public-0.17.0 |
|---|---|
| target | x86_64-freebsd14.1 |
| tgt config | freebsd_14-clang_18 |
| timestamp | 2025-12-13 05:04:59 UTC (02:32:29 hours ago) |
| result | success | log | rebuild |
| toolchain | public-0.17.0 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_debian_12-clang_17 |
| timestamp | 2025-12-13 05:02:20 UTC (02:35:08 hours 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-12-13 05:01:23 UTC (02:36:05 hours 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-12-13 04:54:01 UTC (02:43:27 hours 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-12-12 09:58:11 UTC (21:39:17 hours 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-12-12 09:57:58 UTC (21:39:30 hours 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-12-12 09:57:24 UTC (21:40:04 hours ago) |
| result | success | log | rebuild |
| toolchain | public-0.17.0 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-clang_18_libc++ |
| timestamp | 2025-12-12 03:40:28 UTC (01 03:57: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_libc++-static_O3 |
| timestamp | 2025-12-12 03:39:49 UTC (01 03:57:40 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-12-12 03:38:42 UTC (01 03:58:46 days ago) |
| result | warning (update) | warning (install) | log | rebuild |
| toolchain | public-0.17.0 |
|---|---|
| target | x86_64-linux-gnu |
| tgt config | linux_fedora_40-gcc_14-bindist |
| timestamp | 2025-12-11 17:46:02 UTC (01 13:51:26 days ago) |
| result | success | log | rebuild |
| toolchain | public-0.17.0 |
|---|---|
| target | aarch64-linux-gnu |
| tgt config | linux_debian_12-clang_18_libc++-O3 |
| timestamp | 2025-12-11 13:59:57 UTC (01 17:37:31 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-12-11 13:57:55 UTC (01 17:39:33 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-12-11 13:57:19 UTC (01 17:40:09 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-ndebug_O3 |
| timestamp | 2025-12-11 13:48:40 UTC (01 17:48:49 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-12-11 13:46:26 UTC (01 17:51:02 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-12-11 13:44:54 UTC (01 17:52:34 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-12-11 13:43:42 UTC (01 17:53:46 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 |
| timestamp | 2025-12-10 12:05:45 UTC (02 19:31:43 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-12-10 12:04:40 UTC (02 19:32:49 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-12-10 11:52:04 UTC (02 19:45:24 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