BadScript 2
Loading...
Searching...
No Matches
BadOperator.cs
Go to the documentation of this file.
2
6public abstract class BadOperator
7{
14 protected BadOperator(int precedence, string symbol, bool isLeftAssociative = true)
15 {
16 Precedence = precedence;
17 Symbol = symbol;
18 IsLeftAssociative = isLeftAssociative;
19 }
20
24 public int Precedence { get; }
25
29 public bool IsLeftAssociative { get; }
30
34 public string Symbol { get; }
35}
Base Class of All Operators.
Definition BadOperator.cs:7
string Symbol
The Operator Symbol.
int Precedence
The Precedence of the Operator.
BadOperator(int precedence, string symbol, bool isLeftAssociative=true)
Constructor of the Operator.
bool IsLeftAssociative
Set to true if the Operator needs to be evaluated left to right.
Contains the Operators for the BadScript2 Language.