BadScript 2
Loading...
Searching...
No Matches
BadLessOrEqualOperator.cs
Go to the documentation of this file.
3
5
10{
14 public BadLessOrEqualOperator() : base(9, "<=") { }
15
17 public override BadExpression Parse(BadExpression left, BadSourceParser parser)
18 {
19 BadExpression right = parser.ParseExpression(null, Precedence);
20
21 return new BadLessOrEqualExpression(left, right, left.Position.Combine(right.Position));
22 }
23}
The Parser of the Language. It turns Source Code into an Expression Tree.
BadExpression ParseExpression(BadExpression? left=null, int precedence=int.MaxValue)
Parses an Expression with a precedence greater than the given precedence. Moves the reader to the nex...
Base Implementation for all Expressions used inside the Script.
BadSourcePosition Position
The source Position of the Expression.
Base class for all binary operators.
int Precedence
The Precedence of the Operator.
override BadExpression Parse(BadExpression left, BadSourceParser parser)
Contains the Comparison Expressions for the BadScript2 Language.
Contains the Expressions for the BadScript2 Language.
Contains the Comparison Operators for the BadScript2 Language.