libmya 0.1.0
Library to parse Mya language.
Loading...
Searching...
No Matches
operators.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum operator operator_t
 

Enumerations

enum  operator {
  OP_AND = 0 ,
  OP_DIV ,
  OP_MINUS ,
  OP_MULT ,
  OP_NOT ,
  OP_OR ,
  OP_PLUS ,
  OP_SHIFT_LEFT ,
  OP_SHIFT_RIGHT ,
  OP_XOR
}
 

Variables

const char * mya_operators []
 

Typedef Documentation

◆ operator_t

typedef enum operator operator_t

Enumeration Type Documentation

◆ operator

enum operator
Enumerator
OP_AND 
OP_DIV 
OP_MINUS 
OP_MULT 
OP_NOT 
OP_OR 
OP_PLUS 
OP_SHIFT_LEFT 
OP_SHIFT_RIGHT 
OP_XOR 

Definition at line 3 of file operators.h.

4{
5 OP_AND = 0,
6 OP_DIV,
9 OP_NOT,
10 OP_OR,
11 OP_PLUS,
14 OP_XOR,
enum operator operator_t
@ OP_SHIFT_LEFT
Definition operators.h:12
@ OP_NOT
Definition operators.h:9
@ OP_SHIFT_RIGHT
Definition operators.h:13
@ OP_PLUS
Definition operators.h:11
@ OP_DIV
Definition operators.h:6
@ OP_XOR
Definition operators.h:14
@ OP_MULT
Definition operators.h:8
@ OP_AND
Definition operators.h:5
@ OP_MINUS
Definition operators.h:7
@ OP_OR
Definition operators.h:10

Variable Documentation

◆ mya_operators

const char* mya_operators[]
extern

Definition at line 21 of file globals.c.

21 {
22 [OP_AND] = "&",
23 // clang-format hates me.
24 [OP_DIV] = "/",
25 [OP_MINUS] = "-",
26 [OP_MULT] = "*",
27 [OP_NOT] = "~",
28 [OP_OR] = "|",
29 [OP_PLUS] = "+",
30 [OP_SHIFT_LEFT] = "<<",
31 [OP_SHIFT_RIGHT] = ">>",
32 [OP_XOR] = "^",
33 NULL,
34};