summaryrefslogtreecommitdiff
path: root/Util/VS2010/Dafny/DafnyLanguageService
diff options
context:
space:
mode:
authorGravatar Rustan Leino <leino@microsoft.com>2011-04-19 16:48:32 -0700
committerGravatar Rustan Leino <leino@microsoft.com>2011-04-19 16:48:32 -0700
commit5bd736fee46b289c130110fdf5cad91aa97d9475 (patch)
tree63b4a5162863c8bad084b9d1163eaa1a126f2dde /Util/VS2010/Dafny/DafnyLanguageService
parent2ebe4385e9146fb1ba568fb2a8ad5d8475303cc8 (diff)
Dafny: added type "nat"
Diffstat (limited to 'Util/VS2010/Dafny/DafnyLanguageService')
-rw-r--r--Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs b/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs
index 80082ec9..3302d368 100644
--- a/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs
+++ b/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs
@@ -22,7 +22,7 @@ namespace Demo
"call", "if", "then", "else", "while", "invariant",
"break", "label", "return", "foreach", "havoc", "print", "use",
"returns", "requires", "ensures", "modifies", "reads", "decreases",
- "int", "bool", "false", "true", "null",
+ "bool", "nat", "int", "false", "true", "null",
"function", "free",
"in", "forall", "exists",
"seq", "set", "array", "array2", "array3",
@@ -317,8 +317,9 @@ namespace Demo
| "modifies"
| "reads"
| "decreases"
- | "int"
| "bool"
+ | "nat"
+ | "int"
| "false"
| "true"
| "null"
@@ -381,7 +382,7 @@ namespace Demo
;
typeDecl.Rule
- = (ToTerm("int") | "bool" | ident | "seq" | "set" | "array") + (("<" + MakePlusRule(typeDecl, ToTerm(","), typeDecl) + ">") | Empty)
+ = (ToTerm("int") | "nat" | "bool" | ident | "seq" | "set" | "array") + (("<" + MakePlusRule(typeDecl, ToTerm(","), typeDecl) + ">") | Empty)
| ToTerm("token") + "<" + (typeDecl + ".") + ident + ">"
;