public ASSIGN_Instruction(MonoLangParser.VarContext varContext, MonoLangParser.ExpressionContext[] expressionContext) { _variable = VariableFactory.BuildVariable(varContext); _expression = ExpressionFactory.BuildExpression(expressionContext[0]); }
public PUSH_Instruction(MonoLangParser.ExpressionContext[] expressionContext) { _expression = ExpressionFactory.BuildExpression(expressionContext[0]); }
public WRITE_Instruction(MonoLangParser.PortContext portContext, MonoLangParser.ExpressionContext[] expressionContext) { _portName = portContext.name().NAME().GetText(); _outputExpression = ExpressionFactory.BuildExpression(expressionContext[0]); }
public EXIT_Instruction(MonoLangParser.ExpressionContext[] context) { _exitCodeExpression = ExpressionFactory.BuildExpression(context[0]); }
public COMPARE_Instruction(MonoLangParser.ExpressionContext[] context) { _leftExpression = ExpressionFactory.BuildExpression(context[0]); _rightExpression = ExpressionFactory.BuildExpression(context[1]); }