reflex/20210808+1

[full]

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-08-22 23:01:31 UTC (09:09:39 hours 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-08-22 22:59:53 UTC (09:11:17 hours 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-08-22 22:58:28 UTC (09:12:42 hours 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-08-22 22:56:35 UTC (09:14:34 hours 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-08-22 22:54:36 UTC (09:16:34 hours 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-08-22 22:50:45 UTC (09:20:25 hours 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-08-22 22:39:36 UTC (09:31:34 hours 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-08-22 22:35:12 UTC (09:35:58 hours 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-08-22 22:33:21 UTC (09:37:49 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-08-22 22:22:05 UTC (09:49:05 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-08-22 22:21:34 UTC (09:49:36 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-08-22 22:19:54 UTC (09:51:16 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-08-22 22:17:25 UTC (09:53:44 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-08-22 22:16:16 UTC (09:54:53 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-08-22 22:14:19 UTC (09:56:50 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-08-22 22:13:49 UTC (09:57:20 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-08-22 22:10:57 UTC (10:00:13 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-08-22 22:10:46 UTC (10:00:23 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-08-22 22:05:35 UTC (10:05:35 hours ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-freebsd13.3
tgt config freebsd_13-clang_17
timestamp 2025-08-22 21:53:05 UTC (10:18:04 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-08-22 21:52:47 UTC (10:18:22 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-08-22 21:48:45 UTC (10:22:25 hours ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-freebsd14.1
tgt config freebsd_14-clang_18
timestamp 2025-08-22 21:47:51 UTC (10:23:18 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-08-22 21:46:45 UTC (10:24:24 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-08-22 21:45:35 UTC (10:25:35 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-08-22 21:42:36 UTC (10:28:33 hours 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-08-21 23:51:22 UTC (01 08:19:47 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-08-21 23:45:47 UTC (01 08:25:22 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-08-21 23:44:08 UTC (01 08:27: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
timestamp 2025-08-21 23:43:00 UTC (01 08:28:10 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-08-21 13:50:18 UTC (01 18:20:51 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-08-21 13:49:41 UTC (01 18:21:29 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-08-21 13:48:07 UTC (01 18:23:02 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-08-21 13:47:29 UTC (01 18:23:41 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-08-21 13:45:44 UTC (01 18:25:25 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-08-21 13:45:21 UTC (01 18:25:48 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-08-21 05:42:33 UTC (02 02:28:36 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-clang_17
timestamp 2025-08-20 12:07:20 UTC (02 20:03: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_17_libc++
timestamp 2025-08-20 12:03:46 UTC (02 20:07:23 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-08-20 12:01:18 UTC (02 20:09:52 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