Skip to content

lexxmark/winflexbison

Repository files navigation

WinFlexBison - Flex and Bison for Microsoft Windows

WinFlexBison is a Windows port of Flex (the fast lexical analyser) and GNU Bison (parser generator). Both win_flex and win_bison are based on upstream sources but depend on system libraries only.

NOTE:

  • 2.4.x versions include GNU Bison version 2.7
  • 2.5.x versions include GNU Bison version 3.x.x

License

Flex uses a BSD license, GNU Bison is licensed under the GNU General Public License (GPLv3+).
All build scripts in WinFlexBison are distributed under GPLv3+. See COPYING for details.

All documentation, especially those under custom_build_rules/doc, is distributed under the GNU Free Documentation License (FDL 1.3+).

Build status

Bison 3.x (master) Build status and, for compatibility reasons, Bison 2.7 (bison2.7) Build status

Downloads

https://github.com/lexxmark/winflexbison/releases provides stable versions. To test non-released development versions see the artifacts provided by CI under "Build status".

Changelog

The release page includes the full Changelog but you may also see the changelog.md file.

Build requirements

  • Visual Studio 2017 or newer
  • optional: CMake (when building with CMake)

HowTo

You may use win_flex and win_bison directly on the command line or use them via CustomBuildRules in VisualStudio.

Example flex/bison files

See https://github.com/meyerd/flex-bison-example