Permalink
Browse files

bison: use %declarations instead of command line options.

  • Loading branch information...
groleo committed Sep 21, 2016
1 parent 0bdb01d commit 97c2c1d6f323d6d38dda4820c00ca8ca8f5b6940
Showing with 4 additions and 2 deletions.
  1. +1 −2 src/CMakeLists.txt
  2. +3 −0 src/constexp.y
View
@@ -118,8 +118,7 @@ FLEX_TARGET(constexp constexp.l ${GENERATED_SRC}/constexp.cpp
FLEX_TARGET(xmlcode xmlcode.l ${GENERATED_SRC}/xmlcode.cpp COMPILE_FLAGS "${LEX_FLAGS}")
FLEX_TARGET(configimpl configimpl.l ${GENERATED_SRC}/configimpl.cpp COMPILE_FLAGS "${LEX_FLAGS}")
BISON_TARGET(vhdlparser vhdlparser.y ${GENERATED_SRC}/vhdlparser.cpp COMPILE_FLAGS "${YACC_FLAGS} -l -p vhdlscannerYY")
BISON_TARGET(constexp constexp.y ${GENERATED_SRC}/ce_parse.cpp COMPILE_FLAGS "${YACC_FLAGS} -l -p constexpYY")
BISON_TARGET(constexp constexp.y ${GENERATED_SRC}/ce_parse.cpp COMPILE_FLAGS "${YACC_FLAGS}")
add_library(doxycfg STATIC
${GENERATED_SRC}/lang_cfg.h
View
@@ -42,6 +42,9 @@ int constexpYYlex();
%}
%no-lines
%name-prefix "constexpYY"
%token TOK_QUESTIONMARK
%token TOK_COLON
%token TOK_OR

0 comments on commit 97c2c1d

Please sign in to comment.