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
This enables generating lexer and parser files with a command-line script:
cmake -P cmake/scripts/GenerateLexersParsers.cmake
Instead of doing the entire CMake configuration phase and then executing some
target to generate files this simplifies step to generate these files when
needed.
* Two new utility modules: PHP/Bison.cmake and PHP/Re2c.cmake. They provide
using Bison and re2c in CMake normal workflow and command-line. They rely on
their find modules. Find modules are not meant to provide functions. This is
a bad practice learned from some existing modules out there for convenience
but it is more proper to have such functions as separate modules. Find modules
should ideally only deal with finding packages and providing the imported
targets. Ideally, how the package is used should be done in some wrapper
module, which provides these functions. Here, the php_bison() and php_re2c().
Also, downloading is moved to these modules for now.
* ExternalProject is for now used to download and build Bison and re2c if they
are not found on the system.
* They also download these two tools if they are not found on the system. Bison
download and custom build is for now only supported through its
Autotools-based build system.
* More common naming for parser and lexer files generation functionality used in
filenames: "grammar"
* Long Bison and re2c options used to find them in the docs more easily
* The --conditions option is available since re2c 1.1.
* Bison removed from CI
0 commit comments