diff options
author | qunyanm <unknown> | 2015-03-05 12:04:37 -0800 |
---|---|---|
committer | qunyanm <unknown> | 2015-03-05 12:04:37 -0800 |
commit | db30cafd94527e73e969457c9c00e8c67300d7d4 (patch) | |
tree | 304827ba0d57583141f110b2834ae040b7453bb4 /Source/Dafny/Parser.cs | |
parent | dbce023dbbbc2a73853c3d2b6251e85d4d627376 (diff) |
Stop pretty-print from emitting deprecated semi-colons.
Diffstat (limited to 'Source/Dafny/Parser.cs')
-rw-r--r-- | Source/Dafny/Parser.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Dafny/Parser.cs b/Source/Dafny/Parser.cs index 295160c2..d67def8c 100644 --- a/Source/Dafny/Parser.cs +++ b/Source/Dafny/Parser.cs @@ -673,6 +673,7 @@ bool IsType(ref IToken pt) { if (la.kind == 26) {
while (!(la.kind == 0 || la.kind == 26)) {SynErr(135); Get();}
Get();
+ errors.Warning(t, "the semi-colon that used to terminate a sub-module declaration has been deprecated; in the new syntax, just leave off the semi-colon");
}
if (submodule == null) {
idPath = new List<IToken>();
@@ -759,6 +760,7 @@ bool IsType(ref IToken pt) { if (la.kind == 26) {
while (!(la.kind == 0 || la.kind == 26)) {SynErr(140); Get();}
Get();
+ errors.Warning(t, "the semi-colon that used to terminate a (co)datatype declaration has been deprecated; in the new syntax, just leave off the semi-colon");
}
if (co) {
dt = new CoDatatypeDecl(id, id.val, module, typeArgs, ctors, attrs);
@@ -837,6 +839,7 @@ bool IsType(ref IToken pt) { if (la.kind == 26) {
while (!(la.kind == 0 || la.kind == 26)) {SynErr(143); Get();}
Get();
+ errors.Warning(t, "the semi-colon that used to terminate an opaque-type declaration has been deprecated; in the new syntax, just leave off the semi-colon");
}
}
|