Package one.empty3.library.core.script
Class Pile
java.lang.Object
one.empty3.library.core.script.Pile
- All Implemented Interfaces:
Definition,Interprete
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceclassclassclass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidconstant()evaluer(int posO) intinterprete(String text, int pos) interpreteDouble(String text, int pos) interpreteIdentifier(String text, int pos) interpreteOperateur(String text, int pos) voidvoidvoidvoid
-
Constructor Details
-
Pile
public Pile()
-
-
Method Details
-
addOperateurs
- Specified by:
addOperateursin interfaceDefinition
-
addTypes
- Specified by:
addTypesin interfaceDefinition
-
addVariable
- Specified by:
addVariablein interfaceDefinition
-
constant
- Specified by:
constantin interfaceInterprete
-
evaluer
- Throws:
Exception
-
getOperateur
-
getPosition
public int getPosition()- Specified by:
getPositionin interfaceInterprete
-
getType
-
getVariable
-
interprete
- Specified by:
interpretein interfaceInterprete- Throws:
InterpreteException
-
interpreteDouble
- Throws:
InterpreteException
-
interpreteIdentifier
- Throws:
InterpreteException
-
interpreteOperateur
- Throws:
InterpreteException
-
loadDefVarCst
-
loadOperateurs
public void loadOperateurs() -
setConstant
- Specified by:
setConstantin interfaceInterprete
-
setRepertoire
- Specified by:
setRepertoirein interfaceInterprete
-