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 interface
class
class
class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
constant()
evaluer
(int posO) int
interprete
(String text, int pos) interpreteDouble
(String text, int pos) interpreteIdentifier
(String text, int pos) interpreteOperateur
(String text, int pos) void
void
void
void
-
Constructor Details
-
Pile
public Pile()
-
-
Method Details
-
addOperateurs
- Specified by:
addOperateurs
in interfaceDefinition
-
addTypes
- Specified by:
addTypes
in interfaceDefinition
-
addVariable
- Specified by:
addVariable
in interfaceDefinition
-
constant
- Specified by:
constant
in interfaceInterprete
-
evaluer
- Throws:
Exception
-
getOperateur
-
getPosition
public int getPosition()- Specified by:
getPosition
in interfaceInterprete
-
getType
-
getVariable
-
interprete
- Specified by:
interprete
in interfaceInterprete
- Throws:
InterpreteException
-
interpreteDouble
- Throws:
InterpreteException
-
interpreteIdentifier
- Throws:
InterpreteException
-
interpreteOperateur
- Throws:
InterpreteException
-
loadDefVarCst
-
loadOperateurs
public void loadOperateurs() -
setConstant
- Specified by:
setConstant
in interfaceInterprete
-
setRepertoire
- Specified by:
setRepertoire
in interfaceInterprete
-