diff options
author | rustanleino <unknown> | 2010-10-26 01:10:24 +0000 |
---|---|---|
committer | rustanleino <unknown> | 2010-10-26 01:10:24 +0000 |
commit | 4e1353e4aa3ca7d98ccd8da25769af93e09f3cab (patch) | |
tree | 650ddcd3683761e284204d2d7a8c9636e2b83b72 /Dafny/Scanner.cs | |
parent | 60c6971cba380d8b6360e830253b49d9aa830db6 (diff) |
Boogie:
* Updated Parser.cs/Scanner.cs to use new .frame files from boogiepartners.
* It changes, for example, "syntax error:" to just "error:", so adjusted expected Test outputs.
Dafny:
* Ditto for its Parser.cs/Scanner.cs.
* Added ability to provide a custom Errors handler for scanner/parser.
* Added Test/dafny1/Cubes.dfy
Diffstat (limited to 'Dafny/Scanner.cs')
-rw-r--r-- | Dafny/Scanner.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Dafny/Scanner.cs b/Dafny/Scanner.cs index 75d301a4..de87c6ad 100644 --- a/Dafny/Scanner.cs +++ b/Dafny/Scanner.cs @@ -375,7 +375,7 @@ void objectInvariant(){ // eol handling uniform across Windows, Unix and Mac
if (ch == '\r' && buffer.Peek() != '\n') ch = EOL;
if (ch == EOL) {
- line++; col = 0; + line++; col = 0;
} else if (ch == '#' && col == 1) {
int prLine = line;
int prColumn = 0;
@@ -552,7 +552,7 @@ void objectInvariant(){ int recKind = noSym;
int recEnd = pos;
t = new Token();
- t.pos = pos; t.col = col; t.line = line; + t.pos = pos; t.col = col; t.line = line;
t.filename = this.Filename;
int state;
if (start.ContainsKey(ch)) { state = (int) cce.NonNull( start[ch]); }
|