BadScript 2
Loading...
Searching...
No Matches
BadPreIncrementOperator.cs
Go to the documentation of this file.
3
5
10{
14 public BadPreIncrementOperator() : base(2, "++", false) { }
15
16
18 public override BadExpression Parse(BadSourceParser parser)
19 {
20 BadExpression right = parser.ParseExpression(null, Precedence);
21
22 return new BadPreIncrementExpression(right, right.Position);
23 }
24}
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.
int Precedence
The Precedence of the Operator.
Base class for all Unary Prefix Operators.
Contains the Atomic Math Expressions for the BadScript2 Language.
Contains the Expressions for the BadScript2 Language.
Contains the Atomic Math Operators for the BadScript2 Language.