summaryrefslogtreecommitdiff
path: root/Util/VS2010/Dafny
diff options
context:
space:
mode:
authorGravatar rustanleino <unknown>2010-07-19 20:46:55 +0000
committerGravatar rustanleino <unknown>2010-07-19 20:46:55 +0000
commitcd39df6071c1e6636c92d499381695d1bed5ec0a (patch)
treeac2b920ffaa44d07acaa9bae0718e1962e20f627 /Util/VS2010/Dafny
parent002b9a5f3e614e21214e7f95e8b07f2ec332dfd9 (diff)
Chalice: Introduced '[[ S ]]' as a shorthand syntax for 'lock (this) { S }'. Think of the new brackets as atomicity brackets (see PetersonsAlgorithm.chalice)
Chalice: Added Peterson's algorithm to test suite (safety properties only) VS 2010 integration: Updated Chalice and Dafny modes, added keyword highlighting for a new Boogie mode
Diffstat (limited to 'Util/VS2010/Dafny')
-rw-r--r--Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs b/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs
index 8853ca9c..0a45490f 100644
--- a/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs
+++ b/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs
@@ -14,7 +14,7 @@ namespace Demo
IdentifierTerminal ident = new IdentifierTerminal("Identifier");
this.MarkReservedWords(
- "class", "ghost", "static", "var", "const", "method", "datatype",
+ "class", "ghost", "static", "var", "method", "datatype",
"assert", "assume", "new", "this", "object", "refines", "replaces", "by",
"unlimited", "module", "imports",
"call", "if", "then", "else", "while", "invariant",
@@ -244,7 +244,6 @@ namespace Demo
| QualifiedName + ":=" + Rhs
| "var" + localVarStmt
- | "const" + localVarStmt
| "call" + identList + ":=" + FunctionExpression + Semi
| "call" + FunctionExpression + Semi
@@ -284,7 +283,6 @@ namespace Demo
| "ghost"
| "static"
| "var"
- | "const"
| "method"
| "datatype"
| "assert"