amath  1.8.5
Simple command line calculator
operatordefs.h File Reference

Operator defitions used by lexer and other classes. More...

#include "symbol.h"
Include dependency graph for operatordefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  operatordef
 Character definition of operators. More...
 

Variables

static const operatordef operators []
 Character representation of operators tied with their symbols. More...
 

Detailed Description

Operator defitions used by lexer and other classes.

Definition in file operatordefs.h.

Variable Documentation

◆ operators

const operatordef operators[]
static
Initial value:
= {
{'+', symplus},
{'-', symminus},
{'/', symslash},
{'*', symtimes},
{'^', sympower},
{'(', symlparen},
{')', symrparen},
{'|', symabsolute},
{'=', symassign},
{'!', symfactorial},
{'\n', symdelimiter},
{';', symdelimiter}
}
Definition: symbol.h:48

Character representation of operators tied with their symbols.

Definition at line 54 of file operatordefs.h.

Referenced by Language::CharIsOperator(), Lexer::FindKeyword(), and Lexer::GetOperator().