mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Use an IELR parser if available
This commit is contained in:
1
Makefile
1
Makefile
@@ -133,6 +133,7 @@ src/asm/parser.c: src/asm/parser.y
|
|||||||
add_flag 3 6 parse.error=detailed; \
|
add_flag 3 6 parse.error=detailed; \
|
||||||
add_flag 3 0 parse.error=verbose; \
|
add_flag 3 0 parse.error=verbose; \
|
||||||
add_flag 3 0 parse.lac=full; \
|
add_flag 3 0 parse.lac=full; \
|
||||||
|
add_flag 3 0 lr.type=ielr; \
|
||||||
echo "DEFS=$$DEFS"; \
|
echo "DEFS=$$DEFS"; \
|
||||||
${BISON} $$DEFS -d ${YFLAGS} -o $@ $<
|
${BISON} $$DEFS -d ${YFLAGS} -o $@ $<
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ elseif(BISON_VERSION VERSION_GREATER_EQUAL "3.0")
|
|||||||
endif()
|
endif()
|
||||||
if(BISON_VERSION VERSION_GREATER_EQUAL "3.0")
|
if(BISON_VERSION VERSION_GREATER_EQUAL "3.0")
|
||||||
set(BISON_FLAGS "${BISON_FLAGS} -Dparse.lac=full")
|
set(BISON_FLAGS "${BISON_FLAGS} -Dparse.lac=full")
|
||||||
|
set(BISON_FLAGS "${BISON_FLAGS} -Dlr.type=ielr")
|
||||||
endif()
|
endif()
|
||||||
BISON_TARGET(PARSER "asm/parser.y"
|
BISON_TARGET(PARSER "asm/parser.y"
|
||||||
"${PROJECT_SOURCE_DIR}/src/asm/parser.c"
|
"${PROJECT_SOURCE_DIR}/src/asm/parser.c"
|
||||||
|
|||||||
Reference in New Issue
Block a user