You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
win_bison writes LF again, not CRLF, in generated parsers, headers,
.output reports and .dot graphs. 2.5.16 did this; the bison update in
2.5.17 lost it by mistake, so 2.5.17 to 2.5.25 wrote CRLF. --xml output
does not change (it was already LF), and neither does win_flex output
security: win_bison no longer lets a grammar file write outside the output
directory. %output and %header names containing a path separator (/, \ or
a drive letter) are now rejected (CVE-2026-56390, upstream fix 8d101c19)
security: win_bison --html no longer lets a grammar choose the program it
runs. The %define tool.xsltproc override is gone; it always runs xsltproc
from PATH (CVE-2026-56389, upstream fix 3169c1e7)
fixed the D skeletons producing code that does not compile: a parser using
%code lexer wrote "implements" where D spells inheritance ":", and
SymbolKind.toString used std.range names the generated file never imports.
Both are upstream's own fixes, made after bison 3.8.2 was released (#89)
fixed win_bison not finding its data directory when started through a
symbolic link, e.g. the links winget creates in its Links folder (#97)
fixed YYPTRDIFF_T being 32-bit in generated parsers on x64: MSVC exposes
PTRDIFF_MAX only through <stdint.h>, which the skeleton reads only for
C99 and later, so the type fell back to long and every 64-bit build
warned C4244 on the parser stack size (#95)
fixed 9 C4005 macro-redefinition warnings in every generated C++ scanner
built with MSVC: the scanner defined INT8_MIN and eight more limit macros,
then pulled in the SDK's <stdint.h>, which defines them again.
Generated scanners now carry only the flex_int*_t typedefs, in a new
flex/src/flexint_shared.h, as upstream flex does since 2.6.4 (#29)
fixed C4244 in generated C++ scanners: yyFlexLexer::LexerInput returned
yyin.gcount() (a std::streamsize) as int, warning on every x64 build of a
non-interactive scanner (#73; same one-line cast upstream flex uses)
fixed garbled or blank source lines in win_bison caret diagnostics
fixed stray "_m4eof" delimiter lines leaking into generated code and into
skeleton-emitted diagnostics
fixed "bison: /dev/null: cannot open" appended to stderr by every run that
issued a diagnostic
fixed win_bison --update/--fixit failing with "cannot backup: Permission
denied" when the rewritten grammar also produced a caret diagnostic. It
also keeps the grammar's own line endings: a CRLF file stays CRLF
win_flex/win_bison temp files are now delete-on-close, so they no longer
leak when the tool crashes or is killed
fixed random failures when several win_flex/win_bison run concurrently, as
ninja/meson builds do: they picked the same %TEMP% file names and truncated
each other's files, so a run could die with "ERROR: end of file in string",
a crash, or silently wrong output (#86, #100; fix by @jonnysoe in #91)
fixed Debug builds with USE_STATIC_RUNTIME=ON failing to link, and C++
sources being built against the wrong CRT
build with /utf-8 so UTF-8 literals survive the MSVC execution charset
restored flex.skl as the true source of skel.c: the --wincompat skeleton
block existed only in the generated skel.c, so regenerating the skeleton
the upstream way (mkskel.sh) silently dropped --wincompat
MSVC warnings in vendored upstream code (gnulib, m4, bison) are now
disabled per target, so the warnings we can act on are no longer buried;
configure with -DWFB_VENDOR_WARNINGS=ON to see them again
the test targets now build with /WX, so a generated scanner or parser that
starts warning fails the build; configure with -DWFB_TESTS_WERROR=OFF to
turn that off. The tools themselves are not built with /WX
win_bison --trace=automaton now prints goto_map values with %zu instead of
%ld, so values above 2^32 are no longer cut short on x64 (developer trace
output only)
CMake 3.16 or newer is now required (was 3.10, though the build already
used commands that need 3.12); the inline/restrict compatibility defines
are now applied to C only, instead of being defined for every language and
undefined again in each C++ target
added a CTest suite -- the flex 2.6.4 suite, bison compile-run and
golden-diagnostic tests, and port-specific tests -- plus runtests.bat;
run as a gate on AppVeyor
added the full bison GNU Autotest (776 groups) as an opt-in harness run
under MSYS2
win_bison --version now reports Copyright (C) 2021, the year of the
bundled bison 3.8.2; the hand-written config.h still said 2020
README now states what the shipped binaries actually contain: both
win_flex.exe and win_bison.exe link GNU M4 and gnulib, so both are
distributed under GPLv3+ even though flex's own sources are BSD. Scanners
and parsers you generate are unaffected