From 45a783affd5b5c070e56850b1ba662bb3f3d7a21 Mon Sep 17 00:00:00 2001 From: Dietrich Date: Mon, 27 Apr 2015 04:11:19 -0600 Subject: Finished up Parser modifications --- Source/Core/Parser.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/Core/Parser.cs b/Source/Core/Parser.cs index a41597f3..b333f654 100644 --- a/Source/Core/Parser.cs +++ b/Source/Core/Parser.cs @@ -24,6 +24,7 @@ public class Parser { public const int _string = 4; public const int _decimal = 5; public const int _float = 6; + public const int _fp = 97; public const int maxT = 98; const bool T = true; @@ -170,7 +171,7 @@ private class BvBounds : Expr { for (;;) { t = la; la = scanner.Scan(); - if (la.kind <= maxT) { ++errDist; break; } //TODO: should modify float to have value < maxT... + if (la.kind <= maxT) { ++errDist; break; } la = t; } @@ -2115,7 +2116,7 @@ out QKeyValue kv, out Trigger trig, out Expr/*!*/ body) { Expect(0); } - static readonly bool[,]/*!*/ set = { //grid is 17 x 98 + static readonly bool[,]/*!*/ set = { //grid is 17 x 100 {T,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x}, {x,x,x,x, x,x,x,T, x,x,x,x, x,x,x,x, x,x,x,x, x,T,x,x, x,T,x,x, x,T,T,x, T,T,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x}, {x,T,x,x, x,x,x,x, x,T,x,x, x,x,T,T, T,T,x,T, x,x,x,x, x,x,x,T, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x}, -- cgit v1.2.3