BadScript 2
Loading...
Searching...
No Matches
BadNullCoalescingAssignOperator.cs
Go to the documentation of this file.
3
5
10{
14 public BadNullCoalescingAssignOperator() : base(16, "??=", false) { }
15
17 public override BadExpression Parse(BadExpression left, BadSourceParser parser)
18 {
19 BadExpression right = parser.ParseExpression();
20
21 return new BadNullCoalescingAssignExpression(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...
Implements the Null Coalescing Assign Expression LEFT ??= RIGHT.
Base Implementation for all Expressions used inside the Script.
BadSourcePosition Position
The source Position of the Expression.
Base class for all binary operators.
override BadExpression Parse(BadExpression left, BadSourceParser parser)
Contains the Access Expressions for the BadScript2 Language.
Contains the Expressions for the BadScript2 Language.
Contains the Binary Operators for the BadScript2 Language.