Rename asmy to more explicit parser

This should make the purpose of that file clearer to newcomers
This commit is contained in:
ISSOtm
2020-10-11 21:03:41 +02:00
parent 6a8ae643d5
commit 01637768cf
7 changed files with 11 additions and 11 deletions

View File

@@ -22,13 +22,13 @@ else()
pkg_check_modules(LIBPNG REQUIRED libpng)
endif()
BISON_TARGET(ASMy "asm/asmy.y"
"${PROJECT_SOURCE_DIR}/src/asm/asmy.c"
DEFINES_FILE "${PROJECT_SOURCE_DIR}/src/asm/asmy.h"
BISON_TARGET(PARSER "asm/parser.y"
"${PROJECT_SOURCE_DIR}/src/asm/parser.c"
DEFINES_FILE "${PROJECT_SOURCE_DIR}/src/asm/parser.h"
)
set(rgbasm_src
"${BISON_ASMy_OUTPUT_SOURCE}"
"${BISON_PARSER_OUTPUT_SOURCE}"
"asm/charmap.c"
"asm/fstack.c"
"asm/lexer.c"

4
src/asm/.gitignore vendored
View File

@@ -1,2 +1,2 @@
asmy.c
asmy.h
/parser.c
/parser.h

View File

@@ -36,7 +36,7 @@
#include "asm/util.h"
#include "asm/warning.h"
/* Include this last so it gets all type & constant definitions */
#include "asmy.h" /* For token definitions, generated from asmy.y */
#include "parser.h" /* For token definitions, generated from parser.y */
#ifdef LEXER_DEBUG
#define dbgPrint(...) fprintf(stderr, "[lexer] " __VA_ARGS__)

View File

@@ -26,7 +26,7 @@
#include "asm/rpn.h"
#include "asm/symbol.h"
#include "asm/warning.h"
#include "asmy.h"
#include "parser.h"
#include "extern/err.h"
#include "extern/getopt.h"