From 4744c729d2fa83f324ffa84dc619ad0a321a9c98 Mon Sep 17 00:00:00 2001 From: rustanleino Date: Fri, 17 Sep 2010 01:26:47 +0000 Subject: Dafny: * Added full support for multi-dimensional arrays (except for one issue that still needs to be added in compilation) * Changed syntax of array length from |a| to a.Length (for one-dimensional arrays). The syntax for either dimensions is, for example, b.Length0 and b.Length1 for 2-dimensional arrays. * Internally, this meant adding support for built-in classes and readonly fields --- Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Util/VS2010') diff --git a/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs b/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs index 12d433b1..48841c43 100644 --- a/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs +++ b/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs @@ -25,7 +25,7 @@ namespace Demo "int", "bool", "false", "true", "null", "function", "free", "in", "forall", "exists", - "seq", "set", "array", + "seq", "set", "array", "array2", "array3", "match", "case", "fresh", "old" ); @@ -330,6 +330,8 @@ namespace Demo | "seq" | "set" | "array" + | "array2" + | "array3" | "match" | "case" | "fresh" -- cgit v1.2.3