|
libpulsar
A modular compiler for the pulsar programming language
|
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. | |
Operator information.
Definition at line 18 of file operator.h.
| ps_operator_precedence_t ps_operator::binary_prec |
The operator's binary precedence.
Definition at line 45 of file operator.h.
| bool ps_operator::is_binary |
Enables processing this operator as a binary operator.
The following must additionally be set:
is_left_associativebinary_prec Definition at line 25 of file operator.h.
| bool ps_operator::is_left_associative |
This defines operator assocativity as follows:
true - left associativefalse - right associative Definition at line 39 of file operator.h.
| 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.
| ps_operator_precedence_t ps_operator::unary_prec |
The operator's unary precedence.
Definition at line 42 of file operator.h.