BadScript 2
Loading...
Searching...
No Matches
BadDeleteExpressionParser.cs
Go to the documentation of this file.
4
6
11{
13 public override bool IsValue(BadSourceParser parser)
14 {
15 return parser.Reader.IsKey(BadStaticKeys.DELETE_KEY);
16 }
17
20 {
22 BadExpression expr = parser.ParseExpression(null, 3);
23
24 return new BadDeleteExpression(expr, pos.Combine(expr.Position));
25 }
26}
Describes a specific position inside a source file.
BadSourcePosition Combine(BadSourcePosition other)
Combines two Source Positions.
Contains Static Data for the BadScript Language.
The Parser of the Language. It turns Source Code into an Expression Tree.
BadSourceReader Reader
The Source Reader.
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 an expression that Deletes an object pointed to by BadObjectReference.
Base Implementation for all Expressions used inside the Script.
BadSourcePosition Position
The source Position of the Expression.
override BadExpression ParseValue(BadSourceParser parser)
Base class for all Value Parsers.
BadSourcePosition Eat(char c)
Asserts that the current character matches the specified character.
Contains Shared Data Structures and Functionality.
Contains the Expressions for the BadScript2 Language.
Contains the Operators for the BadScript2 Language.
Contains the Source Reader for the BadScript2 Language.