minibasic
クラス Interpreter

java.lang.Object
  拡張minibasic.analysis.AnalysisAdapter
      拡張minibasic.analysis.DepthFirstAdapter
          拡張minibasic.Interpreter
すべての実装インタフェース:
Analysis, Switch

public class Interpreter
extends DepthFirstAdapter


コンストラクタの概要
Interpreter()
           
 
メソッドの概要
 void caseAAssignmentStatement(AAssignmentStatement node)
          ASSIGNMENT identifier := expression
 void caseAConstantValue(AConstantValue node)
          CONTSTANT value (integer format)
 void caseADivExpression(ADivExpression node)
          CALC(DIV) left / right
 void caseAEqualCondition(AEqualCondition node)
          CONDITION(EQ) left = right
 void caseAExpressionValue(AExpressionValue node)
          EXPRESSION value
 void caseAForStatement(AForStatement node)
          FOR identifier := from_exp TO to_exp statements NEXT
 void caseAGreaterThanCondition(AGreaterThanCondition node)
          CONDITION(GT) left > right
 void caseAIdentifierValue(AIdentifierValue node)
          IDENT value (assigned variable)
 void caseAIfStatement(AIfStatement node)
          IF condition THEN statements [ELSE statements] ENDIF
 void caseALessThanCondition(ALessThanCondition node)
          CONDITION(LT) left < right
 void caseAMinusExpression(AMinusExpression node)
          CALC(MINUS) left - right
 void caseAModExpression(AModExpression node)
          CALC(MOD) left MOD right
 void caseAMultExpression(AMultExpression node)
          CALC(MULT) left * right
 void caseAPlusExpression(APlusExpression node)
          CALC(PLUS) left + right
 void caseAPrintExpStatement(APrintExpStatement node)
          PRINT expression
 void caseAPrintlnStatement(APrintlnStatement node)
          PRINTLN
 void caseAPrintStrStatement(APrintStrStatement node)
          PRINT "string"
 void caseAReadStatement(AReadStatement node)
          READ identifier
 void caseAValueExpression(AValueExpression node)
          GET value
 
クラス minibasic.analysis.DepthFirstAdapter から継承したメソッド
caseAElseOptionalElse, caseAEmptyOptionalElse, caseAEmptyStatements, caseAListStatements, caseStart, defaultIn, defaultOut, inAAssignmentStatement, inAConstantValue, inADivExpression, inAElseOptionalElse, inAEmptyOptionalElse, inAEmptyStatements, inAEqualCondition, inAExpressionValue, inAForStatement, inAGreaterThanCondition, inAIdentifierValue, inAIfStatement, inALessThanCondition, inAListStatements, inAMinusExpression, inAModExpression, inAMultExpression, inAPlusExpression, inAPrintExpStatement, inAPrintlnStatement, inAPrintStrStatement, inAReadStatement, inAValueExpression, inStart, outAAssignmentStatement, outAConstantValue, outADivExpression, outAElseOptionalElse, outAEmptyOptionalElse, outAEmptyStatements, outAEqualCondition, outAExpressionValue, outAForStatement, outAGreaterThanCondition, outAIdentifierValue, outAIfStatement, outALessThanCondition, outAListStatements, outAMinusExpression, outAModExpression, outAMultExpression, outAPlusExpression, outAPrintExpStatement, outAPrintlnStatement, outAPrintStrStatement, outAReadStatement, outAValueExpression, outStart
 
クラス minibasic.analysis.AnalysisAdapter から継承したメソッド
caseEOF, caseTAssign, caseTBlank, caseTDiv, caseTElse, caseTEndif, caseTEqual, caseTFor, caseTGreaterThan, caseTIdentifier, caseTIf, caseTLessThan, caseTLPar, caseTMinus, caseTMod, caseTMult, caseTNewLine, caseTNext, caseTNumber, caseTPlus, caseTPrint, caseTPrintln, caseTRead, caseTRPar, caseTString, caseTThen, caseTTo, defaultCase, getIn, getOut, setIn, setOut
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Interpreter

public Interpreter()
メソッドの詳細

caseAIfStatement

public void caseAIfStatement(AIfStatement node)
IF condition THEN statements [ELSE statements] ENDIF

定義:
インタフェース Analysis 内の caseAIfStatement
オーバーライド:
クラス DepthFirstAdapter 内の caseAIfStatement

caseAForStatement

public void caseAForStatement(AForStatement node)
FOR identifier := from_exp TO to_exp statements NEXT

定義:
インタフェース Analysis 内の caseAForStatement
オーバーライド:
クラス DepthFirstAdapter 内の caseAForStatement

caseAReadStatement

public void caseAReadStatement(AReadStatement node)
READ identifier

定義:
インタフェース Analysis 内の caseAReadStatement
オーバーライド:
クラス DepthFirstAdapter 内の caseAReadStatement

caseAPrintExpStatement

public void caseAPrintExpStatement(APrintExpStatement node)
PRINT expression

定義:
インタフェース Analysis 内の caseAPrintExpStatement
オーバーライド:
クラス DepthFirstAdapter 内の caseAPrintExpStatement

caseAPrintStrStatement

public void caseAPrintStrStatement(APrintStrStatement node)
PRINT "string"

定義:
インタフェース Analysis 内の caseAPrintStrStatement
オーバーライド:
クラス DepthFirstAdapter 内の caseAPrintStrStatement

caseAPrintlnStatement

public void caseAPrintlnStatement(APrintlnStatement node)
PRINTLN

定義:
インタフェース Analysis 内の caseAPrintlnStatement
オーバーライド:
クラス DepthFirstAdapter 内の caseAPrintlnStatement

caseAAssignmentStatement

public void caseAAssignmentStatement(AAssignmentStatement node)
ASSIGNMENT identifier := expression

定義:
インタフェース Analysis 内の caseAAssignmentStatement
オーバーライド:
クラス DepthFirstAdapter 内の caseAAssignmentStatement

caseALessThanCondition

public void caseALessThanCondition(ALessThanCondition node)
CONDITION(LT) left < right

定義:
インタフェース Analysis 内の caseALessThanCondition
オーバーライド:
クラス DepthFirstAdapter 内の caseALessThanCondition

caseAGreaterThanCondition

public void caseAGreaterThanCondition(AGreaterThanCondition node)
CONDITION(GT) left > right

定義:
インタフェース Analysis 内の caseAGreaterThanCondition
オーバーライド:
クラス DepthFirstAdapter 内の caseAGreaterThanCondition

caseAEqualCondition

public void caseAEqualCondition(AEqualCondition node)
CONDITION(EQ) left = right

定義:
インタフェース Analysis 内の caseAEqualCondition
オーバーライド:
クラス DepthFirstAdapter 内の caseAEqualCondition

caseAValueExpression

public void caseAValueExpression(AValueExpression node)
GET value

定義:
インタフェース Analysis 内の caseAValueExpression
オーバーライド:
クラス DepthFirstAdapter 内の caseAValueExpression

caseAPlusExpression

public void caseAPlusExpression(APlusExpression node)
CALC(PLUS) left + right

定義:
インタフェース Analysis 内の caseAPlusExpression
オーバーライド:
クラス DepthFirstAdapter 内の caseAPlusExpression

caseAMinusExpression

public void caseAMinusExpression(AMinusExpression node)
CALC(MINUS) left - right

定義:
インタフェース Analysis 内の caseAMinusExpression
オーバーライド:
クラス DepthFirstAdapter 内の caseAMinusExpression

caseAMultExpression

public void caseAMultExpression(AMultExpression node)
CALC(MULT) left * right

定義:
インタフェース Analysis 内の caseAMultExpression
オーバーライド:
クラス DepthFirstAdapter 内の caseAMultExpression

caseADivExpression

public void caseADivExpression(ADivExpression node)
CALC(DIV) left / right

定義:
インタフェース Analysis 内の caseADivExpression
オーバーライド:
クラス DepthFirstAdapter 内の caseADivExpression

caseAModExpression

public void caseAModExpression(AModExpression node)
CALC(MOD) left MOD right

定義:
インタフェース Analysis 内の caseAModExpression
オーバーライド:
クラス DepthFirstAdapter 内の caseAModExpression

caseAConstantValue

public void caseAConstantValue(AConstantValue node)
CONTSTANT value (integer format)

定義:
インタフェース Analysis 内の caseAConstantValue
オーバーライド:
クラス DepthFirstAdapter 内の caseAConstantValue

caseAIdentifierValue

public void caseAIdentifierValue(AIdentifierValue node)
IDENT value (assigned variable)

定義:
インタフェース Analysis 内の caseAIdentifierValue
オーバーライド:
クラス DepthFirstAdapter 内の caseAIdentifierValue

caseAExpressionValue

public void caseAExpressionValue(AExpressionValue node)
EXPRESSION value

定義:
インタフェース Analysis 内の caseAExpressionValue
オーバーライド:
クラス DepthFirstAdapter 内の caseAExpressionValue