diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/CommandLine/osx/ld64.json (renamed from src/CommandLine/osx/ld64-osx.json) | 0 | ||||
| -rw-r--r-- | src/CommandLine/osx/mld64.json (renamed from src/CommandLine/osx/mld64-osx.json) | 0 | ||||
| -rw-r--r-- | src/CommandLine/posix/ld64.json (renamed from src/CommandLine/posix/ld64-posix.json) | 0 | ||||
| -rw-r--r-- | src/CommandLine/posix/mld64.json (renamed from src/CommandLine/posix/mld64-posix.json) | 0 | ||||
| -rw-r--r-- | src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp | 7 |
5 files changed, 7 insertions, 0 deletions
diff --git a/src/CommandLine/osx/ld64-osx.json b/src/CommandLine/osx/ld64.json index ddd233b..ddd233b 100644 --- a/src/CommandLine/osx/ld64-osx.json +++ b/src/CommandLine/osx/ld64.json diff --git a/src/CommandLine/osx/mld64-osx.json b/src/CommandLine/osx/mld64.json index 57f08f0..57f08f0 100644 --- a/src/CommandLine/osx/mld64-osx.json +++ b/src/CommandLine/osx/mld64.json diff --git a/src/CommandLine/posix/ld64-posix.json b/src/CommandLine/posix/ld64.json index 0847b41..0847b41 100644 --- a/src/CommandLine/posix/ld64-posix.json +++ b/src/CommandLine/posix/ld64.json diff --git a/src/CommandLine/posix/mld64-posix.json b/src/CommandLine/posix/mld64.json index e408cec..e408cec 100644 --- a/src/CommandLine/posix/mld64-posix.json +++ b/src/CommandLine/posix/mld64.json diff --git a/src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp b/src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp index 5c51309..f42ad0a 100644 --- a/src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp +++ b/src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp @@ -48,6 +48,13 @@ CK_IMPORT_C bool NectarCheckFrontend(CompilerKit::STLString& input) { } } + if (input.find("(") != CompilerKit::STLString::npos && !input.ends_with(";")) { + if (input.find(":=") == CompilerKit::STLString::npos) { + Detail::print_error("A function call must always end with ';'", "check"); + return false; + } + } + if (input.find("const ") != CompilerKit::STLString::npos && !input.ends_with(";")) { if (input.find(":=") != CompilerKit::STLString::npos) { Detail::print_error("A declaration must always end with ';'", "check"); |
