| souffle
    2.0.2-371-g6315b36
    | 
 
 
 
Go to the documentation of this file.
   31 class Pragma : 
public Node {
 
   41     std::pair<std::string, std::string> 
getkvp()
 const {
 
   42         return std::pair<std::string, std::string>(
key, 
value);
 
   46     void print(std::ostream& os)
 const override {
 
   47         os << 
".pragma " << 
key << 
" " << 
value << 
"\n";
 
   50     bool equal(
const Node& node)
 const override {
 
   51         const auto& other = 
static_cast<const Pragma&
>(node);
 
  
Pragma(std::string key, std::string value, SrcLocation loc={})
std::pair< std::string, std::string > getkvp() const
void print(std::ostream &os) const override
Output to a given output stream.
Representation of a global option.
std::string key
Name of the key.
Pragma * clone() const override
Create a clone (i.e.
Abstract class for syntactic elements in an input program.
bool equal(const Node &node) const override
Abstract equality check for two AST nodes.
const SrcLocation & getSrcLoc() const
Return source location of the Node.