souffle
2.0.2-371-g6315b36
|
Go to the documentation of this file.
32 class Constant :
public Argument {
42 void print(std::ostream& os)
const override {
46 bool equal(
const Node& node)
const override {
47 const auto& other =
static_cast<const Constant&
>(node);
void print(std::ostream &os) const override
Output to a given output stream.
const std::string & getConstant() const
Get string representation of Constant.
Constant * clone() const override=0
Create clone.
An abstract class for arguments.
Constant(std::string value, SrcLocation loc={})
Abstract class for syntactic elements in an input program.
A class describing a range in an input file.
bool equal(const Node &node) const override
Abstract equality check for two AST nodes.
const std::string constant
String representation of constant.