Skip to content

Commit

Permalink
bison: use %declarations instead of command line options.
Browse files Browse the repository at this point in the history
  • Loading branch information
groleo committed Sep 21, 2016
1 parent 0bdb01d commit 97c2c1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/constexp.y
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ int constexpYYlex();

%}

%no-lines
%name-prefix "constexpYY"

%token TOK_QUESTIONMARK
%token TOK_COLON
%token TOK_OR
Expand Down

0 comments on commit 97c2c1d

Please sign in to comment.