Class ScriptCompiler
java.lang.Object
org.jmol.script.ScriptCompiler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected T[]protected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected intprotected intprotected intprotected intprotected intprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected intprotected Tprotected Tprotected shortprotected booleanprotected intprotected intprotected Stringprotected intprotected Tprotected intprotected Tprotected Tprotected Viewer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected booleanprotected booleanprotected booleanerror(int error) protected booleanerrorIntStr2(int iError, String value, String more) protected booleanprotected booleanprotected booleanisUserFunction(String name) protected inttokAt(int i) protected static booleanstatic StringunescapeString(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
-