31 name = namedExpr.GetName();
40 name = named.GetName();
55 parser.
Reader.SkipNonToken();
60 parser.
Reader.SkipNonToken();
65 bool isNamed =
IsNamed(expr, out
string? name);
67 if (!isDefault && isNamed)
72 if (isDefault && !isNamed)
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...
Base Implementation for all Expressions used inside the Script.
BadSourcePosition Position
The source Position of the Expression.
Implements the Assign Expression LEFT = RIGHT.
Exports the Default Value of the current execution.
Exports a Named Value from the current execution.
Base class for all Value Parsers.
Parses the Export Expression.
override BadExpression ParseValue(BadSourceParser parser)
override bool IsValue(BadSourceParser parser)
static bool IsNamed(BadExpression expr, out string? name)
Returns true if the specified expression is a named expression.
BadSourcePosition Eat(char c)
Asserts that the current character matches the specified character.
Gets thrown by the runtime.
Gets inherited by all Expressions that have a Name(e.g. Variable Definitions, Function Definitions,...
Contains Shared Data Structures and Functionality.
Contains the Binary Expressions for the BadScript2 Language.
Contains the Expressions for the BadScript2 Language.
Contains the Source Reader for the BadScript2 Language.
Contains the Error Objects for the BadScript2 Language.