mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
m::ast::Instruction Struct Reference

#include <AST.hpp>

Inheritance diagram for m::ast::Instruction:
[legend]
Collaboration diagram for m::ast::Instruction:
[legend]

Public Member Functions

 Instruction (Token tok, ThreadSafePooledString name, std::vector< std::string > args)
 
void accept (ASTCommandVisitor &v) override
 
void accept (ConstASTCommandVisitor &v) const override
 
void dump (std::ostream &out) const
 
void dump () const
 

Data Fields

Token tok
 

‍the token of the Instruction; starts with \


 
ThreadSafePooledString name
 

‍the name of the Instruction (without leading \)


 
std::vector< std::string > args
 

‍the arguments to the Instruction; may be empty


 

Detailed Description

Definition at line 768 of file AST.hpp.

Constructor & Destructor Documentation

◆ Instruction()

m::ast::Instruction::Instruction ( Token  tok,
ThreadSafePooledString  name,
std::vector< std::string >  args 
)
inline

Definition at line 777 of file AST.hpp.

Member Function Documentation

◆ accept() [1/2]

void m::ast::Instruction::accept ( ASTCommandVisitor v)
overridevirtual

Implements m::ast::Command.

◆ accept() [2/2]

void m::ast::Instruction::accept ( ConstASTCommandVisitor v) const
overridevirtual

Implements m::ast::Command.

◆ dump() [1/2]

void Command::dump ( ) const
inherited

Definition at line 251 of file AST.cpp.

References m::ast::Command::dump().

Referenced by m::ast::Command::dump().

◆ dump() [2/2]

void Command::dump ( std::ostream &  out) const
inherited

Definition at line 245 of file AST.cpp.

Field Documentation

◆ args

std::vector<std::string> m::ast::Instruction::args

‍the arguments to the Instruction; may be empty

Definition at line 775 of file AST.hpp.

Referenced by m::execute_instruction().

◆ name

ThreadSafePooledString m::ast::Instruction::name

‍the name of the Instruction (without leading \)

Definition at line 773 of file AST.hpp.

Referenced by m::execute_instruction().

◆ tok

Token m::ast::Instruction::tok

‍the token of the Instruction; starts with \

Definition at line 771 of file AST.hpp.

Referenced by m::execute_instruction().


The documentation for this struct was generated from the following file: