Package org.jmol.script
Class ScriptCompiler
java.lang.Object
org.jmol.script.ScriptCompiler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected T[]
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected String
protected String
protected String
protected String
protected boolean
protected int
protected int
protected int
protected int
protected int
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected int
protected T
protected T
protected short
protected boolean
protected int
protected int
protected String
protected int
protected T
protected int
protected T
protected T
protected Viewer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
protected boolean
protected boolean
error
(int error) protected boolean
errorIntStr2
(int iError, String value, String more) protected boolean
protected boolean
protected boolean
isUserFunction
(String name) protected int
tokAt
(int i) protected static boolean
static String
unescapeString
(String script, int ich, int nChar)
-
Field Details
-
vwr
-
htUserFunctions
-
script
-
isStateScript
protected boolean isStateScript -
lineCurrent
protected short lineCurrent -
iCommand
protected int iCommand -
ichCurrentCommand
protected int ichCurrentCommand -
ichComment
protected int ichComment -
ichEnd
protected int ichEnd -
ichToken
protected int ichToken -
theToken
-
lastFlowCommand
-
tokenCommand
-
lastToken
-
tokenAndEquals
-
theTok
protected int theTok -
nTokens
protected int nTokens -
tokCommand
protected int tokCommand -
ptNewSetModifier
protected int ptNewSetModifier -
isNewSet
protected boolean isNewSet -
haveMacro
protected boolean haveMacro -
logMessages
protected boolean logMessages -
atokenInfix
-
itokenInfix
protected int itokenInfix -
isSetBrace
protected boolean isSetBrace -
isMathExpressionCommand
protected boolean isMathExpressionCommand -
isSetOrDefine
protected boolean isSetOrDefine -
isEmbeddedExpression
protected boolean isEmbeddedExpression -
isCommaAsOrAllowed
protected boolean isCommaAsOrAllowed -
errorMessage
-
errorMessageUntranslated
-
errorLine
-
errorType
-
ERROR_badArgumentCount
protected static final int ERROR_badArgumentCount- See Also:
-
ERROR_badContext
protected static final int ERROR_badContext- See Also:
-
ERROR_commandExpected
protected static final int ERROR_commandExpected- See Also:
-
ERROR_endOfCommandUnexpected
protected static final int ERROR_endOfCommandUnexpected- See Also:
-
ERROR_invalidExpressionToken
protected static final int ERROR_invalidExpressionToken- See Also:
-
ERROR_missingEnd
protected static final int ERROR_missingEnd- See Also:
-
ERROR_tokenExpected
protected static final int ERROR_tokenExpected- See Also:
-
ERROR_tokenUnexpected
protected static final int ERROR_tokenUnexpected- See Also:
-
ERROR_unrecognizedParameter
protected static final int ERROR_unrecognizedParameter- See Also:
-
ERROR_unrecognizedToken
protected static final int ERROR_unrecognizedToken- See Also:
-
-
Constructor Details
-
ScriptCompiler
- Parameters:
vwr
-
-
-
Method Details
-
tokAt
protected int tokAt(int i) -
unescapeString
-
compileExpressions
protected boolean compileExpressions() -
compileExpression
protected boolean compileExpression() -
isUserFunction
-
tokenAttr
-
commandExpected
protected boolean commandExpected() -
error
protected boolean error(int error) -
errorStr
-
errorIntStr2
-
errorStr2
-