generated from Sigmarik/cpp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
operators.h
57 lines (46 loc) · 1.63 KB
/
operators.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* @file operators.h
* @author Kudryashov Ilya ([email protected])
* @brief Operator lexemes
* @version 0.1
* @date 2024-07-20
*
* @copyright Copyright (c) 2024
*
*/
#pragma once
#include "logics/blueprints/scripts/parser/lexeme.h"
namespace lexemes {
using AssignmentLeft = StrictLexeme<"::", "->">;
using AssignmentRight = StrictLexeme<"<-">;
using Access = StrictLexeme<".">;
using Equal = StrictLexeme<"==">;
using NotEqual = StrictLexeme<"!=">;
using Or = StrictLexeme<"||", "or">;
using And = StrictLexeme<"&&", "and">;
using Not = StrictLexeme<"!", "not">;
using ConditionalLeft = StrictLexeme<"?">;
using ConditionalRight = StrictLexeme<":">;
using MacroAssignment = StrictLexeme<"=">;
using Less = StrictLexeme<"<">;
using Greater = StrictLexeme<">">;
using LessEq = StrictLexeme<"<=">;
using GreaterEq = StrictLexeme<">=">;
using AlphaLess = StrictLexeme<"#<">;
using AlphaGreater = StrictLexeme<"#>">;
using Plus = StrictLexeme<"+">;
using Minus = StrictLexeme<"-">;
using Divide = StrictLexeme<"/">;
using Multiply = StrictLexeme<"*">;
using Power = StrictLexeme<"^">;
using Sine = StrictLexeme<"sin">;
using Cosine = StrictLexeme<"cos">;
using Ln = StrictLexeme<"ln", "loge">;
using Log2 = StrictLexeme<"log2">;
using Log10 = StrictLexeme<"log10">;
using Absolute = StrictLexeme<"abs">;
using Sign = StrictLexeme<"sign">;
using Length = StrictLexeme<"len">;
using SkipInvalid = StrictLexeme<"skip_invalid">;
using Valid = StrictLexeme<"valid">;
}; // namespace lexemes