Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a numeric constant, including integral and floating. More...
#include <Ast.hpp>
Public Member Functions | |
NumericConstantExpr (const QualifiedType &type, const z::string &value) | |
Default constructor. | |
Private Member Functions | |
virtual void | visit (Expr::Visitor &visitor) const |
Abstract visitor function. |
Concrete class for AST Node representing a numeric constant, including integral and floating.
For example:
local x = 10;
Here, 10 is a numeric constant.
NumericConstantExpr | ( | const QualifiedType & | type, |
const z::string & | value | ||
) | [inline] |
Default constructor.
type | Expression type |
value | The string representing the constant value |
void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |