libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
Data Fields
ps_operator Struct Reference

Operator information. More...

#include <operator.h>

Data Fields

bool is_binary
 Enables processing this operator as a binary operator.
 
bool is_unary
 Enables processing this operator as an unary operator.
 
bool is_left_associative
 This defines operator assocativity as follows:
 
ps_operator_precedence_t unary_prec
 The operator's unary precedence.
 
ps_operator_precedence_t binary_prec
 The operator's binary precedence.
 

Detailed Description

Operator information.

Definition at line 18 of file operator.h.

Field Documentation

◆ binary_prec

ps_operator_precedence_t ps_operator::binary_prec

The operator's binary precedence.

Definition at line 45 of file operator.h.

◆ is_binary

bool ps_operator::is_binary

Enables processing this operator as a binary operator.

The following must additionally be set:

  • is_left_associative
  • binary_prec

Definition at line 25 of file operator.h.

◆ is_left_associative

bool ps_operator::is_left_associative

This defines operator assocativity as follows:

  • true - left associative
  • false - right associative

Definition at line 39 of file operator.h.

◆ is_unary

bool ps_operator::is_unary

Enables processing this operator as an unary operator.

The following must additionally be set:

  • unary_prec

Definition at line 32 of file operator.h.

◆ unary_prec

ps_operator_precedence_t ps_operator::unary_prec

The operator's unary precedence.

Definition at line 42 of file operator.h.


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