OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
client::ast Namespace Reference

Classes

struct  tagged
struct  nil
struct  identifier
struct  quoted_string
struct  unary
struct  operation
struct  function_call
struct  expression

Typedefs

typedef boost::variant< nil, bool, unsigned int, double, identifier, boost::recursive_wrapper< unary >, boost::recursive_wrapper< function_call >, boost::recursive_wrapper< expression > > operand
typedef boost::variant< expression, quoted_stringfunction_call_argument

Enumerations

enum  optoken {
  op_plus , op_minus , op_times , op_divide ,
  op_positive , op_negative , op_not , op_equal ,
  op_not_equal , op_less , op_less_equal , op_greater ,
  op_greater_equal , op_and , op_or
}

Functions

std::ostream & operator<< (std::ostream &out, identifier const &id)

Class Documentation

◆ client::ast::nil

struct client::ast::nil

Definition at line 26 of file Expression/Parser/ast.hpp.

Collaboration diagram for client::ast::nil:

◆ client::ast::unary

struct client::ast::unary

Definition at line 80 of file Expression/Parser/ast.hpp.

Collaboration diagram for client::ast::unary:
Class Members
operand operand_
optoken operator_

◆ client::ast::operation

struct client::ast::operation

Definition at line 86 of file Expression/Parser/ast.hpp.

Collaboration diagram for client::ast::operation:
Class Members
operand operand_
optoken operator_

◆ client::ast::function_call

struct client::ast::function_call

Definition at line 92 of file Expression/Parser/ast.hpp.

Collaboration diagram for client::ast::function_call:
Class Members
list< function_call_argument > args
identifier function_name

◆ client::ast::expression

struct client::ast::expression

Definition at line 98 of file Expression/Parser/ast.hpp.

Collaboration diagram for client::ast::expression:
Class Members
operand first
list< operation > rest

Typedef Documentation

◆ function_call_argument

Definition at line 59 of file Expression/Parser/ast.hpp.

◆ operand

typedef boost::variant< nil , bool , unsigned int , double , identifier , boost::recursive_wrapper<unary> , boost::recursive_wrapper<function_call> , boost::recursive_wrapper<expression> > client::ast::operand

Definition at line 53 of file Expression/Parser/ast.hpp.

Enumeration Type Documentation

◆ optoken

Enumerator
op_plus 
op_minus 
op_times 
op_divide 
op_positive 
op_negative 
op_not 
op_equal 
op_not_equal 
op_less 
op_less_equal 
op_greater 
op_greater_equal 
op_and 
op_or 

Definition at line 61 of file Expression/Parser/ast.hpp.

Function Documentation

◆ operator<<()

std::ostream & client::ast::operator<< ( std::ostream & out,
identifier const & id )
inline

Definition at line 110 of file Expression/Parser/ast.hpp.