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