cleoni.adv
Class ActionsRunner

java.lang.Object
  extended by cleoni.adv.DimxParser
      extended by cleoni.adv.ActionsRunner

public class ActionsRunner
extends DimxParser

SmallBasic scripting engine (parser). Does not parse Functions. Main method is "run"


Field Summary
 java.lang.String actionverb
           
static java.lang.String[] actKeywords
           
protected static java.lang.String[] forCloser
           
protected static java.lang.String[] ifCloser
           
protected static java.lang.String[] ifClosers
          Keywords closing an IF
 Token result
           
protected static int[] setInstrArgs
           
static java.lang.String[] setLineClosers
          Recognized instructions
 
Fields inherited from class cleoni.adv.DimxParser
agent, buf, CONSUME, CR, currLine, EOF, logger, owner, PRESERVE, setCr, setCrTabSpace, setFunctArgs, setFunctClosers, setFunctions, setOperators, setPunctuation, setQuotes, setTabSpace, stackLevel, startLine, startToken, target, tokenTerminators, varspace, verbose, world
 
Constructor Summary
ActionsRunner(World aWorld, Varspace aVarspace, java.lang.String actionsBlock, int aStartLine, java.lang.String aFileName, java.lang.String aFileShort, java.lang.String anOwner, AdvObject anAgent, java.lang.String aTarget, int aStackLevel)
           
 
Method Summary
 Dict parseInstructionLine(java.lang.String[] closers)
          Parses and instruction line.
 Token run()
           
 
Methods inherited from class cleoni.adv.DimxParser
eat_extended, eat, evalExpression, evalExpression, feed, getLine, identifyFunProc, identifyLine, lookupElement, lookupToken, lookupTokenCRsens, nextElement, nextToken, parseCR, parseCREOF, parseList, parseToken, readToCR, reset, resolve, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

setLineClosers

public static final java.lang.String[] setLineClosers
Recognized instructions


actKeywords

public static final java.lang.String[] actKeywords

setInstrArgs

protected static final int[] setInstrArgs

ifClosers

protected static final java.lang.String[] ifClosers
Keywords closing an IF


ifCloser

protected static final java.lang.String[] ifCloser

forCloser

protected static final java.lang.String[] forCloser

actionverb

public java.lang.String actionverb

result

public Token result
Constructor Detail

ActionsRunner

public ActionsRunner(World aWorld,
                     Varspace aVarspace,
                     java.lang.String actionsBlock,
                     int aStartLine,
                     java.lang.String aFileName,
                     java.lang.String aFileShort,
                     java.lang.String anOwner,
                     AdvObject anAgent,
                     java.lang.String aTarget,
                     int aStackLevel)
Parameters:
aWorld -
actionsBlock -
aStartLine -
anOwner -
anAgent -
aTarget -
aStackLevel -
Method Detail

parseInstructionLine

public Dict parseInstructionLine(java.lang.String[] closers)
                          throws DimxException
Parses and instruction line. The specified closing Token will not be consumed

Returns:
Throws:
DimxException

run

public Token run()
          throws DimxException
Returns:
Throws:
DimxException