Split up the linkerscript lexer and layout actions

This commit is contained in:
Rangi42
2025-07-27 13:03:28 -04:00
parent a353637a90
commit 16e16cdf51
15 changed files with 448 additions and 433 deletions

View File

@@ -12,8 +12,8 @@
}
%code {
#include "link/lexer.hpp"
#include "link/layout.hpp"
#include "link/warning.hpp"
yy::parser::symbol_type yylex(); // Provided by layout.cpp
}
@@ -110,5 +110,5 @@ optional:
/******************** Error handler ********************/
void yy::parser::error(std::string const &msg) {
scriptError(lexer_Context(), "%s", msg.c_str());
lexer_Error("%s", msg.c_str());
}