summaryrefslogtreecommitdiff
path: root/Util
diff options
context:
space:
mode:
authorGravatar rustanleino <unknown>2010-09-01 02:18:00 +0000
committerGravatar rustanleino <unknown>2010-09-01 02:18:00 +0000
commitf2acf182c42f371b1075c0fd71885eb9cecb870c (patch)
treef9ff7f6fbe8f9b592659e8641c33a8dbebf1a4fe /Util
parent5ca9822b9883a01d3ce2a4bb2c43b383f7f124e1 (diff)
VS2010 mode for Dafny and Boogie: updated, for example to properly deal with string literals
Diffstat (limited to 'Util')
-rw-r--r--Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs b/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs
index ba4fdcc0..12d433b1 100644
--- a/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs
+++ b/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs
@@ -13,6 +13,8 @@ namespace Demo
NumberLiteral n = TerminalFactory.CreateCSharpNumber("number");
IdentifierTerminal ident = new IdentifierTerminal("Identifier");
+ StringLiteral stringLiteral = TerminalFactory.CreateCSharpString("String");
+
this.MarkReservedWords( // NOTE: these keywords must also appear once more below
"class", "ghost", "static", "var", "method", "datatype",
"assert", "assume", "new", "this", "object", "refines", "replaces", "by",
@@ -366,6 +368,7 @@ namespace Demo
| "<==>"
| "#"
| n
+ | stringLiteral
;
idType.Rule