|Anonymous | Login||2020-09-28 14:54 MSK|
|My View | View Issues | Change Log | Roadmap|
|occt: master fba34cf8|
|abv||bugmaster||master||2020-08-28 15:09:54||master dda9303c|
|Affected Issues||0031740: Configuration - recover support of Yacc and Lex generation|
|Changeset||0031740: Configuration - recover support of Yacc and Lex generation
Scripts adm/cmake/bison.cmake and adm/cmake/flex.cmake are refactored to enable actual search for bison and flex.
Apart of standard locations, also sub-folders of 3RDPARTY_DIR whose names contain "bison" and "flex", respectively, are added to search.
Cache variables 3RDPARTY_BISON_EXECUTABLE and 3RDPARTY_FLEX_EXECUTABLE are removed to avoid confusion (they duplicated similar variables without "3RDPARTY_" prefix).
Lex and Yacc files are corrected to match changes made manually in generated files during last years:
- StepFile/step.yacc: correction missing from 0022972
- StepFile/step.lex: corrected for compilation (broken by 0031060)
- MSVC-specific code is synchronized between StepFile/step.lex and ExprIntrp/ExprIntrp.lex
- Old commented code and duplicate code blocks removed
Commands for execution of Flex and Bison tools in CMake scripts are tweaked to avoid embedding line numbers (with local paths) in generated files.
Scanners and parsers are regenerated from updated source files with modified options.
Note that lex.ExprIntrp.c is regenerated with multiple differences because option -f (fast scanner) was used for generation of previous version (by WOK).
|mod - adm/cmake/bison.cmake|
|mod - adm/cmake/flex.cmake|
|mod - adm/cmake/occt_toolkit.cmake|
|mod - src/ExprIntrp/ExprIntrp.lex|
|mod - src/ExprIntrp/ExprIntrp.tab.c|
|mod - src/ExprIntrp/ExprIntrp.tab.h|
|mod - src/ExprIntrp/lex.ExprIntrp.c|
|mod - src/StepFile/lex.step.c|
|mod - src/StepFile/step.lex|
|mod - src/StepFile/step.tab.c|
|mod - src/StepFile/step.tab.h|
|mod - src/StepFile/step.yacc|
|Copyright © 2000 - 2020 MantisBT Team|