libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
operator.h File Reference

Operator precedence and associativity info. More...

#include "def.h"
#include "token.h"

Go to the source code of this file.

Data Structures

struct  ps_operator
 Operator information. More...
 

Typedefs

typedef i32 ps_operator_precedence_t
 

Functions

bool ps_token_type_is_op (enum ps_token_type type)
 Whether type represents an operator token.
 
const struct ps_operatorps_token_type_get_op (enum ps_token_type type)
 Returns: the operator information associated with the given operator token.
 

Detailed Description

Operator precedence and associativity info.

Author
Ethan Uppal

Definition in file operator.h.

Typedef Documentation

◆ ps_operator_precedence_t

Definition at line 13 of file operator.h.

Function Documentation

◆ ps_token_type_get_op()

const struct ps_operator * ps_token_type_get_op ( enum ps_token_type  type)

Returns: the operator information associated with the given operator token.

Precondition
ps_token_type_is_op(type) == true.

Definition at line 213 of file operator.c.

◆ ps_token_type_is_op()

bool ps_token_type_is_op ( enum ps_token_type  type)

Whether type represents an operator token.

Definition at line 209 of file operator.c.