sir.mts.parser
Class STImpLParser

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by sir.mts.parser.STImpLParser
All Implemented Interfaces:
STImpLParserTokenTypes

public class STImpLParser
extends antlr.LLkParser
implements STImpLParserTokenTypes


Field Summary
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_3
           
static antlr.collections.impl.BitSet _tokenSet_4
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
 
Fields inherited from interface sir.mts.parser.STImpLParserTokenTypes
ASSIGN_VAR, BAR, BEGIN, DATA, DATA_ESC, DATA_NO_ESC, END, EOF, EQ, ESC, FLAG, NEWLINE, NULL_TREE_LOOKAHEAD, SET_CLASSPATH, SUBST, WS
 
Constructor Summary
  STImpLParser(antlr.ParserSharedInputState state)
           
protected STImpLParser(STImpLLexer lexer, TestScriptGenerator scriptGen)
          Creates a new STImpL file parser.
  STImpLParser(antlr.TokenBuffer tokenBuf)
           
protected STImpLParser(antlr.TokenBuffer tokenBuf, int k)
           
  STImpLParser(antlr.TokenStream lexer)
           
protected STImpLParser(antlr.TokenStream lexer, int k)
           
 
Method Summary
 void assign_var()
           
 void background()
           
 void comment()
           
protected  java.lang.String data()
           
 void deprecated__comment()
           
 void driver()
           
 void ext_finish()
           
 void ext_setup()
           
 void inl_finish()
           
 void inl_setup()
           
 void input()
           
 void move()
           
 void output()
           
 void param()
           
static void parse(java.io.InputStream in, TestScriptGenerator scriptGen)
          Parses a STImpL file and generates a test script.
static void parse(java.io.InputStream in, TestScriptGenerator scriptGen, boolean disableEscapes)
          Parses a STImpL file and generates a test script.
static void parse(java.io.Reader in, TestScriptGenerator scriptGen)
          Parses a STImpL file and generates a test script.
static void parse(java.io.Reader in, TestScriptGenerator scriptGen, boolean disableEscapes)
          Parses a STImpL file and generates a test script.
 void stimple_file()
           
 void test_spec()
           
protected  java.lang.String ws()
           
 
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
 
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tokenNames

public static final java.lang.String[] _tokenNames

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0

_tokenSet_1

public static final antlr.collections.impl.BitSet _tokenSet_1

_tokenSet_2

public static final antlr.collections.impl.BitSet _tokenSet_2

_tokenSet_3

public static final antlr.collections.impl.BitSet _tokenSet_3

_tokenSet_4

public static final antlr.collections.impl.BitSet _tokenSet_4
Constructor Detail

STImpLParser

protected STImpLParser(STImpLLexer lexer,
                       TestScriptGenerator scriptGen)
Creates a new STImpL file parser.

Parameters:
lexer - STImpL lexer to use to read the file.
scriptGen - Test script generator that will receive the STImpL test case commands.

STImpLParser

protected STImpLParser(antlr.TokenBuffer tokenBuf,
                       int k)

STImpLParser

public STImpLParser(antlr.TokenBuffer tokenBuf)

STImpLParser

protected STImpLParser(antlr.TokenStream lexer,
                       int k)

STImpLParser

public STImpLParser(antlr.TokenStream lexer)

STImpLParser

public STImpLParser(antlr.ParserSharedInputState state)
Method Detail

parse

public static void parse(java.io.InputStream in,
                         TestScriptGenerator scriptGen)
                  throws ParseException,
                         ScriptGenException
Parses a STImpL file and generates a test script.

Parameters:
in - Stream from which to read the STImpL file.
scriptGen - Test script generator to be used.
Throws:
ParseException - If the STImpL file is not correctly written.
ScriptGenException - If there is an error while attempting to generate the test script.

parse

public static void parse(java.io.InputStream in,
                         TestScriptGenerator scriptGen,
                         boolean disableEscapes)
                  throws ParseException,
                         ScriptGenException
Parses a STImpL file and generates a test script.

Parameters:
in - Stream from which to read the STImpL file.
scriptGen - Test script generator to be used.
disableEscapes - Flag that controls whether slash-escapes are to be recognized in the STImpL file.
Throws:
ParseException - If the STImpL file is not correctly written.
ScriptGenException - If there is an error while attempting to generate the test script.

parse

public static void parse(java.io.Reader in,
                         TestScriptGenerator scriptGen)
                  throws ParseException,
                         ScriptGenException
Parses a STImpL file and generates a test script.

Parameters:
in - Reader from which to read the STImpL file.
scriptGen - Test script generator to be used.
Throws:
ParseException - If the STImpL file is not correctly written.
ScriptGenException - If there is an error while attempting to generate the test script.

parse

public static void parse(java.io.Reader in,
                         TestScriptGenerator scriptGen,
                         boolean disableEscapes)
                  throws ParseException,
                         ScriptGenException
Parses a STImpL file and generates a test script.

Parameters:
in - Reader from which to read the STImpL file.
scriptGen - Test script generator to be used.
disableEscapes - Flag that controls whether slash-escapes are to be recognized in the STImpL file.
Throws:
ParseException - If the STImpL file is not correctly written.
ScriptGenException - If there is an error while attempting to generate the test script.

stimple_file

public final void stimple_file()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException,
                               ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

assign_var

public final void assign_var()
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException,
                             ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

test_spec

public final void test_spec()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException,
                            ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

data

protected final java.lang.String data()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

param

public final void param()
                 throws antlr.RecognitionException,
                        antlr.TokenStreamException,
                        ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

input

public final void input()
                 throws antlr.RecognitionException,
                        antlr.TokenStreamException,
                        ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

output

public final void output()
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException,
                         ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

move

public final void move()
                throws antlr.RecognitionException,
                       antlr.TokenStreamException,
                       ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

ext_setup

public final void ext_setup()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException,
                            ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

inl_setup

public final void inl_setup()
                     throws antlr.RecognitionException,
                            antlr.TokenStreamException,
                            ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

ext_finish

public final void ext_finish()
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException,
                             ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

inl_finish

public final void inl_finish()
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException,
                             ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

comment

public final void comment()
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException,
                          ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

driver

public final void driver()
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException,
                         ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

background

public final void background()
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException,
                             ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

deprecated__comment

public final void deprecated__comment()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException,
                                      ScriptGenException
Throws:
antlr.RecognitionException
antlr.TokenStreamException
ScriptGenException

ws

protected final java.lang.String ws()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException