diff options
Diffstat (limited to 'src/simple_ast.h')
-rw-r--r-- | src/simple_ast.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/simple_ast.h b/src/simple_ast.h index 5d5e3f201..a04fbf712 100644 --- a/src/simple_ast.h +++ b/src/simple_ast.h @@ -1516,3 +1516,11 @@ public: } }; +// Tolerates 0.0 in the input; does not trust a +() to be there. +class DotZeroValueBuilder : public ValueBuilder { +public: + static Ref makeDouble(double num) { + return makePrefix(PLUS, ValueBuilder::makeDouble(num)); + } +}; + |