diff options
author | Dietrich <dgeisler50@gmail.com> | 2015-07-13 19:40:09 -0600 |
---|---|---|
committer | Dietrich <dgeisler50@gmail.com> | 2015-07-13 19:40:09 -0600 |
commit | 52aa9b8f63a3d955031e7a0dfd6e575ca7cf76b3 (patch) | |
tree | b24be506dda4eae8b2f98486ddacd8df031dc119 /Source/Core/Parser.cs | |
parent | fe331e0a63c7921a996e007860182bad9628fb0d (diff) |
Modified internal abstract float representation to allow user-defined mantissa and exponent
Diffstat (limited to 'Source/Core/Parser.cs')
-rw-r--r-- | Source/Core/Parser.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/Core/Parser.cs b/Source/Core/Parser.cs index 6f793503..bb372cfb 100644 --- a/Source/Core/Parser.cs +++ b/Source/Core/Parser.cs @@ -668,7 +668,17 @@ private class BvBounds : Expr { ty = new BasicType(t, SimpleType.Real);
} else if (la.kind == 98) {
Get();
- ty = new BasicType(t, SimpleType.Float);
+ if (la.kind == 9) {
+ Get();
+ Expect(3);
+ int exp = Int32.Parse(t.val);
+ Expect(3);
+ int man = Int32.Parse(t.val);
+ ty = new FloatType(t, exp, man);
+ Expect(10);
+ }
+ else
+ ty = new FloatType(t, 8, 23);
} else if (la.kind == 16) {
Get();
ty = new BasicType(t, SimpleType.Bool);
|