Package org.antlr.gunit

## Class gUnitParser

- java.lang.Object
- - org.antlr.runtime.BaseRecognizer
  - - org.antlr.runtime.Parser
    - - org.antlr.gunit.gUnitParser

    public class gUnitParser
    extends org.antlr.runtime.Parser

### Nested Class Summary

Nested Classes
`static class` `gUnitParser.file_return`
`static class` `gUnitParser.id_return`
`static class` `gUnitParser.option_return`
`protected static class` `gUnitParser.testsuite_scope`
`static class` `gUnitParser.treeAdaptor_return`

### Field Summary

Fields
`static int` `ACTION`
`static int` `AST`
`static int` `CHAR_LITERAL`
`static int` `DOC_COMMENT`
`static int` `EOF`
`static int` `ESC`
`static int` `EXT`
`static int` `FAIL`
`static org.antlr.runtime.BitSet` `FOLLOW_26_in_expect340`
`static org.antlr.runtime.BitSet` `FOLLOW_27_in_testsuite227`
`static org.antlr.runtime.BitSet` `FOLLOW_28_in_gUnitDef75`
`static org.antlr.runtime.BitSet` `FOLLOW_28_in_optionsSpec109`
`static org.antlr.runtime.BitSet` `FOLLOW_29_in_option126`
`static org.antlr.runtime.BitSet` `FOLLOW_30_in_header157`
`static org.antlr.runtime.BitSet` `FOLLOW_31_in_gUnitDef60`
`static org.antlr.runtime.BitSet` `FOLLOW_32_in_expect331`
`static org.antlr.runtime.BitSet` `FOLLOW_33_in_gUnitDef67`
`static org.antlr.runtime.BitSet` `FOLLOW_33_in_testsuite193`
`static org.antlr.runtime.BitSet` `FOLLOW_34_in_optionsSpec113`
`static org.antlr.runtime.BitSet` `FOLLOW_ACTION_in_header159`
`static org.antlr.runtime.BitSet` `FOLLOW_ACTION_in_output383`
`static org.antlr.runtime.BitSet` `FOLLOW_AST_in_output376`
`static org.antlr.runtime.BitSet` `FOLLOW_expect_in_testcase251`
`static org.antlr.runtime.BitSet` `FOLLOW_EXT_in_file403`
`static org.antlr.runtime.BitSet` `FOLLOW_EXT_in_treeAdaptor146`
`static org.antlr.runtime.BitSet` `FOLLOW_FAIL_in_expect324`
`static org.antlr.runtime.BitSet` `FOLLOW_file_in_input297`
`static org.antlr.runtime.BitSet` `FOLLOW_header_in_gUnitDef87`
`static org.antlr.runtime.BitSet` `FOLLOW_id_in_file401`
`static org.antlr.runtime.BitSet` `FOLLOW_id_in_gUnitDef64`
`static org.antlr.runtime.BitSet` `FOLLOW_id_in_gUnitDef71`
`static org.antlr.runtime.BitSet` `FOLLOW_id_in_option124`
`static org.antlr.runtime.BitSet` `FOLLOW_id_in_treeAdaptor144`
`static org.antlr.runtime.BitSet` `FOLLOW_input_in_testcase249`
`static org.antlr.runtime.BitSet` `FOLLOW_ML_STRING_in_input288`
`static org.antlr.runtime.BitSet` `FOLLOW_ML_STRING_in_output369`
`static org.antlr.runtime.BitSet` `FOLLOW_OK_in_expect317`
`static org.antlr.runtime.BitSet` `FOLLOW_option_in_optionsSpec107`
`static org.antlr.runtime.BitSet` `FOLLOW_OPTIONS_in_optionsSpec104`
`static org.antlr.runtime.BitSet` `FOLLOW_optionsSpec_in_gUnitDef84`
`static org.antlr.runtime.BitSet` `FOLLOW_output_in_expect342`
`static org.antlr.runtime.BitSet` `FOLLOW_RETVAL_in_expect333`
`static org.antlr.runtime.BitSet` `FOLLOW_RULE_REF_in_id429`
`static org.antlr.runtime.BitSet` `FOLLOW_RULE_REF_in_testsuite190`
`static org.antlr.runtime.BitSet` `FOLLOW_RULE_REF_in_testsuite197`
`static org.antlr.runtime.BitSet` `FOLLOW_STRING_in_input278`
`static org.antlr.runtime.BitSet` `FOLLOW_STRING_in_output359`
`static org.antlr.runtime.BitSet` `FOLLOW_testcase_in_testsuite231`
`static org.antlr.runtime.BitSet` `FOLLOW_testsuite_in_gUnitDef90`
`static org.antlr.runtime.BitSet` `FOLLOW_TOKEN_REF_in_id422`
`static org.antlr.runtime.BitSet` `FOLLOW_TOKEN_REF_in_testsuite213`
`static org.antlr.runtime.BitSet` `FOLLOW_treeAdaptor_in_option128`
`GrammarInfo` `grammarInfo`
`static int` `ML_COMMENT`
`static int` `ML_STRING`
`static int` `NESTED_ACTION`
`static int` `NESTED_AST`
`static int` `NESTED_RETVAL`
`static int` `OK`
`static int` `OPTIONS`
`static int` `RETVAL`
`static int` `RULE_REF`
`static int` `SL_COMMENT`
`static int` `STRING`
`static int` `STRING_LITERAL`
`static int` `T__26`
`static int` `T__27`
`static int` `T__28`
`static int` `T__29`
`static int` `T__30`
`static int` `T__31`
`static int` `T__32`
`static int` `T__33`
`static int` `T__34`
`protected java.util.Stack<gUnitParser.testsuite_scope>` `testsuite_stack`
`static int` `TOKEN_REF`
`static java.lang.String[]` `tokenNames`
`static int` `WS`
`static int` `XDIGIT`

### Fields inherited from class org.antlr.runtime.BaseRecognizer

`DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state`

### Fields inherited from class org.antlr.runtime.Parser

`input`

### Constructor Summary

Constructors
`gUnitParser​(org.antlr.runtime.TokenStream input)`
`gUnitParser​(org.antlr.runtime.TokenStream input, GrammarInfo grammarInfo)`
`gUnitParser​(org.antlr.runtime.TokenStream input, org.antlr.runtime.RecognizerSharedState state)`

### Method Summary

All Methods Instance Methods Concrete Methods
`AbstractTest` `expect​()`
`gUnitParser.file_return` `file​()`
`org.antlr.runtime.Parser[]` `getDelegates​()`
`java.lang.String` `getGrammarFileName​()`
`java.lang.String[]` `getTokenNames​()`
`void` `gUnitDef​()`
`void` `header​()`
`gUnitParser.id_return` `id​()`
`gUnitTestInput` `input​()`
`gUnitParser.option_return` `option​()`
`void` `optionsSpec​()`
`org.antlr.runtime.Token` `output​()`
`void` `testcase​(gUnitTestSuite ts)`
`void` `testsuite​()`
`gUnitParser.treeAdaptor_return` `treeAdaptor​()`

### Methods inherited from class org.antlr.runtime.BaseRecognizer

`alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, failed, getBacktrackingLevel, getErrorHeader, getErrorMessage, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, reportError, setBacktrackingLevel, toStrings, traceIn, traceOut`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Methods inherited from class org.antlr.runtime.Parser

`getCurrentInputSymbol, getMissingSymbol, getSourceName, getTokenStream, reset, setTokenStream, traceIn, traceOut`

### Field Detail

#### tokenNames

    public static final java.lang.String[] tokenNames

#### EOF

    public static final int EOF

See Also:
  Constant Field Values

#### T__26

    public static final int T__26

See Also:
  Constant Field Values

#### T__27

    public static final int T__27

See Also:
  Constant Field Values

#### T__28

    public static final int T__28

See Also:
  Constant Field Values

#### T__29

    public static final int T__29

See Also:
  Constant Field Values

#### T__30

    public static final int T__30

See Also:
  Constant Field Values

#### T__31

    public static final int T__31

See Also:
  Constant Field Values

#### T__32

    public static final int T__32

See Also:
  Constant Field Values

#### T__33

    public static final int T__33

See Also:
  Constant Field Values

#### T__34

    public static final int T__34

See Also:
  Constant Field Values

#### ACTION

    public static final int ACTION

See Also:
  Constant Field Values

#### AST

    public static final int AST

See Also:
  Constant Field Values

#### CHAR_LITERAL

    public static final int CHAR_LITERAL

See Also:
  Constant Field Values

#### DOC_COMMENT

    public static final int DOC_COMMENT

See Also:
  Constant Field Values

#### ESC

    public static final int ESC

See Also:
  Constant Field Values

#### EXT

    public static final int EXT

See Also:
  Constant Field Values

#### FAIL

    public static final int FAIL

See Also:
  Constant Field Values

#### ML_COMMENT

    public static final int ML_COMMENT

See Also:
  Constant Field Values

#### ML_STRING

    public static final int ML_STRING

See Also:
  Constant Field Values

#### NESTED_ACTION

    public static final int NESTED_ACTION

See Also:
  Constant Field Values

#### NESTED_AST

    public static final int NESTED_AST

See Also:
  Constant Field Values

#### NESTED_RETVAL

    public static final int NESTED_RETVAL

See Also:
  Constant Field Values

#### OK

    public static final int OK

See Also:
  Constant Field Values

#### OPTIONS

    public static final int OPTIONS

See Also:
  Constant Field Values

#### RETVAL

    public static final int RETVAL

See Also:
  Constant Field Values

#### RULE_REF

    public static final int RULE_REF

See Also:
  Constant Field Values

#### SL_COMMENT

    public static final int SL_COMMENT

See Also:
  Constant Field Values

#### STRING

    public static final int STRING

See Also:
  Constant Field Values

#### STRING_LITERAL

    public static final int STRING_LITERAL

See Also:
  Constant Field Values

#### TOKEN_REF

    public static final int TOKEN_REF

See Also:
  Constant Field Values

#### WS

    public static final int WS

See Also:
  Constant Field Values

#### XDIGIT

    public static final int XDIGIT

See Also:
  Constant Field Values

#### grammarInfo

    public GrammarInfo grammarInfo

#### testsuite_stack

    protected java.util.Stack<gUnitParser.testsuite_scope> testsuite_stack

#### FOLLOW_31_in_gUnitDef60

    public static final org.antlr.runtime.BitSet FOLLOW_31_in_gUnitDef60

#### FOLLOW_id_in_gUnitDef64

    public static final org.antlr.runtime.BitSet FOLLOW_id_in_gUnitDef64

#### FOLLOW_33_in_gUnitDef67

    public static final org.antlr.runtime.BitSet FOLLOW_33_in_gUnitDef67

#### FOLLOW_id_in_gUnitDef71

    public static final org.antlr.runtime.BitSet FOLLOW_id_in_gUnitDef71

#### FOLLOW_28_in_gUnitDef75

    public static final org.antlr.runtime.BitSet FOLLOW_28_in_gUnitDef75

#### FOLLOW_optionsSpec_in_gUnitDef84

    public static final org.antlr.runtime.BitSet FOLLOW_optionsSpec_in_gUnitDef84

#### FOLLOW_header_in_gUnitDef87

    public static final org.antlr.runtime.BitSet FOLLOW_header_in_gUnitDef87

#### FOLLOW_testsuite_in_gUnitDef90

    public static final org.antlr.runtime.BitSet FOLLOW_testsuite_in_gUnitDef90

#### FOLLOW_OPTIONS_in_optionsSpec104

    public static final org.antlr.runtime.BitSet FOLLOW_OPTIONS_in_optionsSpec104

#### FOLLOW_option_in_optionsSpec107

    public static final org.antlr.runtime.BitSet FOLLOW_option_in_optionsSpec107

#### FOLLOW_28_in_optionsSpec109

    public static final org.antlr.runtime.BitSet FOLLOW_28_in_optionsSpec109

#### FOLLOW_34_in_optionsSpec113

    public static final org.antlr.runtime.BitSet FOLLOW_34_in_optionsSpec113

#### FOLLOW_id_in_option124

    public static final org.antlr.runtime.BitSet FOLLOW_id_in_option124

#### FOLLOW_29_in_option126

    public static final org.antlr.runtime.BitSet FOLLOW_29_in_option126

#### FOLLOW_treeAdaptor_in_option128

    public static final org.antlr.runtime.BitSet FOLLOW_treeAdaptor_in_option128

#### FOLLOW_id_in_treeAdaptor144

    public static final org.antlr.runtime.BitSet FOLLOW_id_in_treeAdaptor144

#### FOLLOW_EXT_in_treeAdaptor146

    public static final org.antlr.runtime.BitSet FOLLOW_EXT_in_treeAdaptor146

#### FOLLOW_30_in_header157

    public static final org.antlr.runtime.BitSet FOLLOW_30_in_header157

#### FOLLOW_ACTION_in_header159

    public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_header159

#### FOLLOW_RULE_REF_in_testsuite190

    public static final org.antlr.runtime.BitSet FOLLOW_RULE_REF_in_testsuite190

#### FOLLOW_33_in_testsuite193

    public static final org.antlr.runtime.BitSet FOLLOW_33_in_testsuite193

#### FOLLOW_RULE_REF_in_testsuite197

    public static final org.antlr.runtime.BitSet FOLLOW_RULE_REF_in_testsuite197

#### FOLLOW_TOKEN_REF_in_testsuite213

    public static final org.antlr.runtime.BitSet FOLLOW_TOKEN_REF_in_testsuite213

#### FOLLOW_27_in_testsuite227

    public static final org.antlr.runtime.BitSet FOLLOW_27_in_testsuite227

#### FOLLOW_testcase_in_testsuite231

    public static final org.antlr.runtime.BitSet FOLLOW_testcase_in_testsuite231

#### FOLLOW_input_in_testcase249

    public static final org.antlr.runtime.BitSet FOLLOW_input_in_testcase249

#### FOLLOW_expect_in_testcase251

    public static final org.antlr.runtime.BitSet FOLLOW_expect_in_testcase251

#### FOLLOW_STRING_in_input278

    public static final org.antlr.runtime.BitSet FOLLOW_STRING_in_input278

#### FOLLOW_ML_STRING_in_input288

    public static final org.antlr.runtime.BitSet FOLLOW_ML_STRING_in_input288

#### FOLLOW_file_in_input297

    public static final org.antlr.runtime.BitSet FOLLOW_file_in_input297

#### FOLLOW_OK_in_expect317

    public static final org.antlr.runtime.BitSet FOLLOW_OK_in_expect317

#### FOLLOW_FAIL_in_expect324

    public static final org.antlr.runtime.BitSet FOLLOW_FAIL_in_expect324

#### FOLLOW_32_in_expect331

    public static final org.antlr.runtime.BitSet FOLLOW_32_in_expect331

#### FOLLOW_RETVAL_in_expect333

    public static final org.antlr.runtime.BitSet FOLLOW_RETVAL_in_expect333

#### FOLLOW_26_in_expect340

    public static final org.antlr.runtime.BitSet FOLLOW_26_in_expect340

#### FOLLOW_output_in_expect342

    public static final org.antlr.runtime.BitSet FOLLOW_output_in_expect342

#### FOLLOW_STRING_in_output359

    public static final org.antlr.runtime.BitSet FOLLOW_STRING_in_output359

#### FOLLOW_ML_STRING_in_output369

    public static final org.antlr.runtime.BitSet FOLLOW_ML_STRING_in_output369

#### FOLLOW_AST_in_output376

    public static final org.antlr.runtime.BitSet FOLLOW_AST_in_output376

#### FOLLOW_ACTION_in_output383

    public static final org.antlr.runtime.BitSet FOLLOW_ACTION_in_output383

#### FOLLOW_id_in_file401

    public static final org.antlr.runtime.BitSet FOLLOW_id_in_file401

#### FOLLOW_EXT_in_file403

    public static final org.antlr.runtime.BitSet FOLLOW_EXT_in_file403

#### FOLLOW_TOKEN_REF_in_id422

    public static final org.antlr.runtime.BitSet FOLLOW_TOKEN_REF_in_id422

#### FOLLOW_RULE_REF_in_id429

    public static final org.antlr.runtime.BitSet FOLLOW_RULE_REF_in_id429

### Constructor Detail

#### gUnitParser

    public gUnitParser​(org.antlr.runtime.TokenStream input)

#### gUnitParser

    public gUnitParser​(org.antlr.runtime.TokenStream input,
                       org.antlr.runtime.RecognizerSharedState state)

#### gUnitParser

    public gUnitParser​(org.antlr.runtime.TokenStream input,
                       GrammarInfo grammarInfo)

### Method Detail

#### getDelegates

    public org.antlr.runtime.Parser[] getDelegates​()

#### getTokenNames

    public java.lang.String[] getTokenNames​()

Overrides:
  `getTokenNames` in class `org.antlr.runtime.BaseRecognizer`

#### getGrammarFileName

    public java.lang.String getGrammarFileName​()

Overrides:
  `getGrammarFileName` in class `org.antlr.runtime.BaseRecognizer`

#### gUnitDef

    public final void gUnitDef​()
                        throws org.antlr.runtime.RecognitionException

Throws:
  `org.antlr.runtime.RecognitionException`

#### optionsSpec

    public final void optionsSpec​()
                           throws org.antlr.runtime.RecognitionException

Throws:
  `org.antlr.runtime.RecognitionException`

#### option

    public final gUnitParser.option_return option​()
                                           throws org.antlr.runtime.RecognitionException

Throws:
  `org.antlr.runtime.RecognitionException`

#### treeAdaptor

    public final gUnitParser.treeAdaptor_return treeAdaptor​()
                                                     throws org.antlr.runtime.RecognitionException

Throws:
  `org.antlr.runtime.RecognitionException`

#### header

    public final void header​()
                      throws org.antlr.runtime.RecognitionException

Throws:
  `org.antlr.runtime.RecognitionException`

#### testsuite

    public final void testsuite​()
                         throws org.antlr.runtime.RecognitionException

Throws:
  `org.antlr.runtime.RecognitionException`

#### testcase

    public final void testcase​(gUnitTestSuite ts)
                        throws org.antlr.runtime.RecognitionException

Throws:
  `org.antlr.runtime.RecognitionException`

#### input

    public final gUnitTestInput input​()
                               throws org.antlr.runtime.RecognitionException

Throws:
  `org.antlr.runtime.RecognitionException`

#### expect

    public final AbstractTest expect​()
                              throws org.antlr.runtime.RecognitionException

Throws:
  `org.antlr.runtime.RecognitionException`

#### output

    public final org.antlr.runtime.Token output​()
                                         throws org.antlr.runtime.RecognitionException

Throws:
  `org.antlr.runtime.RecognitionException`

#### file

    public final gUnitParser.file_return file​()
                                       throws org.antlr.runtime.RecognitionException

Throws:
  `org.antlr.runtime.RecognitionException`

#### id

    public final gUnitParser.id_return id​()
                                   throws org.antlr.runtime.RecognitionException

Throws:
  `org.antlr.runtime.RecognitionException`