compiler: Reworked Preprocessor To Support Better Error Messages

Can now support showing the trail of includes in an error
message.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-05-22 20:40:49 -04:00
parent 041009a22e
commit bc51b4e280
8 changed files with 79 additions and 41 deletions
+5
View File
@@ -43,4 +43,9 @@ func simple_cli_preprocessor_test_file_not_found() -> [String] {
@CliTest()
func simple_cli_compilation_error() -> [String] {
return ["p4ce", "--plain", "compile", "action-parameters-wrong-order.p4", "-I", "TestData/Sources/"]
}
@CliTest()
func simple_cli_compilation_error_with_includes() -> [String] {
return ["p4ce", "--plain", "compile", "file-loc-error.p4", "-I", "TestData/Sources/"]
}