BadScript 2
Loading...
Searching...
No Matches
BadAddExpressionCompiler.cs
Go to the documentation of this file.
1
using
BadScript2.Parser.Expressions.Binary.Math
;
2
6
namespace
BadScript2.Runtime.VirtualMachine.Compiler.ExpressionCompilers.Binary.Math
;
7
11
public
class
BadAddExpressionCompiler
:
BadBinaryExpressionCompiler
<BadAddExpression>
12
{
14
public
override
void
CompileBinary
(
BadExpressionCompileContext
context,
BadAddExpression
expression)
15
{
16
context.
Emit
(
BadOpCode
.Add, expression.
Position
);
17
}
18
}
BadScript2.Parser.Expressions.BadExpression.Position
BadSourcePosition Position
The source Position of the Expression.
Definition
BadExpression.cs:165
BadScript2.Parser.Expressions.Binary.Math.BadAddExpression
Implements the Add Expression.
Definition
BadAddExpression.cs:16
BadScript2.Runtime.VirtualMachine.Compiler.ExpressionCompilers.Binary.Math.BadAddExpressionCompiler
Compiles the BadAddExpression.
Definition
BadAddExpressionCompiler.cs:12
BadScript2.Runtime.VirtualMachine.Compiler.ExpressionCompilers.Binary.Math.BadAddExpressionCompiler.CompileBinary
override void CompileBinary(BadExpressionCompileContext context, BadAddExpression expression)
Definition
BadAddExpressionCompiler.cs:14
BadScript2.Runtime.VirtualMachine.Compiler.ExpressionCompilers.Binary.BadBinaryExpressionCompiler
Defines a Compiler for a specific BadBinaryExpression.
Definition
BadBinaryExpressionCompiler.cs:11
BadScript2.Parser.Expressions.Binary.Math
Contains the Math Expressions for the BadScript2 Language.
Definition
BadAddAssignExpression.cs:10
BadScript2.Runtime.VirtualMachine.Compiler.ExpressionCompilers.Binary.Math
Contains Binary Math Expression Compilers.
Definition
BadAddAssignExpressionCompiler.cs:6
BadScript2.Runtime.VirtualMachine.BadOpCode
BadOpCode
Defines the Operations that the BadVirtualMachine can execute.
Definition
BadOpCode.cs:7
BadScript2.Runtime.VirtualMachine.Compiler.ExpressionCompilers.BadExpressionCompileContext
Definition
IBadExpressionCompiler.cs:7
BadScript2.Runtime.VirtualMachine.Compiler.ExpressionCompilers.BadExpressionCompileContext.Emit
void Emit(BadInstruction instruction)
Definition
IBadExpressionCompiler.cs:31
src
BadScript2
Runtime
VirtualMachine
Compiler
ExpressionCompilers
Binary
Math
BadAddExpressionCompiler.cs
Generated by
1.9.8