diff options
author | MichalMoskal <unknown> | 2009-12-17 01:17:59 +0000 |
---|---|---|
committer | MichalMoskal <unknown> | 2009-12-17 01:17:59 +0000 |
commit | 9447617aefbe9706b0d74a827181976e4b9e9d26 (patch) | |
tree | 471ea6938e90be46af5e6ce8e7ca88de1081c977 /Source/Core/parser.frame | |
parent | fa8cb4c335668f180fa2c181ca6bb1ad87b54c4a (diff) |
Allow ":" in addition to "returns" in function definitions. Make the pretty-printer use ":" not "returns".
Allow foo(x,y,z:int,p,q:ptr) kind of syntax in function definitions.
Consequently foo(int,y:bool) is no longer allowed.
Update the testsuite to match that.
Diffstat (limited to 'Source/Core/parser.frame')
-rw-r--r-- | Source/Core/parser.frame | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/parser.frame b/Source/Core/parser.frame index 81c7e67c..c7818e57 100644 --- a/Source/Core/parser.frame +++ b/Source/Core/parser.frame @@ -26,6 +26,10 @@ public class Parser { errDist = 0;
}
+ public static void SemErr(IToken! tok, string! msg) {
+ Errors.SemErr(tok.filename, tok.line, tok.col, msg);
+ }
+
static void Get() {
for (;;) {
token = t;
@@ -96,4 +100,4 @@ public class Parser { } // end Parser
} // end namespace
-$$$
\ No newline at end of file +$$$
|