BadScript 2
Loading...
Searching...
No Matches
BadLogicAssignAndOperator.cs
Go to the documentation of this file.
3
8
13{
17 public BadLogicAssignAndOperator() : base(16, "&=", false) { }
18
20 public override BadExpression Parse(BadExpression left, BadSourceParser parser)
21 {
22 BadExpression right = parser.ParseExpression(null, Precedence);
23
24 return new BadLogicAssignAndExpression(left, right, left.Position.Combine(right.Position));
25 }
26}
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 Self-Assigning Logic Expressions for the BadScript2 Language.
Contains the Expressions for the BadScript2 Language.
Contains the Self-Assigning Logic Operators for the BadScript2 Language.