summaryrefslogtreecommitdiff
path: root/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs')
-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 + ">"
;