Class HutnParser


  • public class HutnParser
    extends EpsilonParser
    Copyright (c) 2008 The University of York. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: Louis Rose - initial API and implementation ----------------------------------------------------------------------------- ANTLR 3 License [The "BSD licence"] Copyright (c) 2005-2008 Terence Parr All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    • Field Detail

      • tokenNames

        public static final String[] tokenNames
      • adaptor

        protected org.antlr.runtime.tree.TreeAdaptor adaptor
      • dfa13

        protected org.eclipse.epsilon.hutn.parse.HutnParser.DFA13 dfa13
      • FOLLOW_pkg_in_document124

        public static final org.antlr.runtime.BitSet FOLLOW_pkg_in_document124
      • FOLLOW_EOF_in_document127

        public static final org.antlr.runtime.BitSet FOLLOW_EOF_in_document127
      • FOLLOW_NAME_in_pkg139

        public static final org.antlr.runtime.BitSet FOLLOW_NAME_in_pkg139
      • FOLLOW_TEXTUAL_VALUE_in_pkg142

        public static final org.antlr.runtime.BitSet FOLLOW_TEXTUAL_VALUE_in_pkg142
      • FOLLOW_LBRACKET_in_pkg145

        public static final org.antlr.runtime.BitSet FOLLOW_LBRACKET_in_pkg145
      • FOLLOW_pkg_contents_in_pkg148

        public static final org.antlr.runtime.BitSet FOLLOW_pkg_contents_in_pkg148
      • FOLLOW_RBRACKET_in_pkg151

        public static final org.antlr.runtime.BitSet FOLLOW_RBRACKET_in_pkg151
      • FOLLOW_cls_in_pkg_contents159

        public static final org.antlr.runtime.BitSet FOLLOW_cls_in_pkg_contents159
      • FOLLOW_cls_level_attribute_in_pkg_contents163

        public static final org.antlr.runtime.BitSet FOLLOW_cls_level_attribute_in_pkg_contents163
      • FOLLOW_assoc_instance_in_pkg_contents167

        public static final org.antlr.runtime.BitSet FOLLOW_assoc_instance_in_pkg_contents167
      • FOLLOW_infix_assoc_in_assoc_instance174

        public static final org.antlr.runtime.BitSet FOLLOW_infix_assoc_in_assoc_instance174
      • FOLLOW_assoc_block_in_assoc_instance178

        public static final org.antlr.runtime.BitSet FOLLOW_assoc_block_in_assoc_instance178
      • FOLLOW_ref_in_infix_assoc194

        public static final org.antlr.runtime.BitSet FOLLOW_ref_in_infix_assoc194
      • FOLLOW_NAME_in_infix_assoc196

        public static final org.antlr.runtime.BitSet FOLLOW_NAME_in_infix_assoc196
      • FOLLOW_ref_in_infix_assoc198

        public static final org.antlr.runtime.BitSet FOLLOW_ref_in_infix_assoc198
      • FOLLOW_27_in_infix_assoc200

        public static final org.antlr.runtime.BitSet FOLLOW_27_in_infix_assoc200
      • FOLLOW_NAME_in_assoc_block234

        public static final org.antlr.runtime.BitSet FOLLOW_NAME_in_assoc_block234
      • FOLLOW_LBRACKET_in_assoc_block236

        public static final org.antlr.runtime.BitSet FOLLOW_LBRACKET_in_assoc_block236
      • FOLLOW_assoc_contents_in_assoc_block238

        public static final org.antlr.runtime.BitSet FOLLOW_assoc_contents_in_assoc_block238
      • FOLLOW_RBRACKET_in_assoc_block241

        public static final org.antlr.runtime.BitSet FOLLOW_RBRACKET_in_assoc_block241
      • FOLLOW_ref_in_assoc_contents274

        public static final org.antlr.runtime.BitSet FOLLOW_ref_in_assoc_contents274
      • FOLLOW_ref_in_assoc_contents276

        public static final org.antlr.runtime.BitSet FOLLOW_ref_in_assoc_contents276
      • FOLLOW_NAME_in_cls_level_attribute299

        public static final org.antlr.runtime.BitSet FOLLOW_NAME_in_cls_level_attribute299
      • FOLLOW_28_in_cls_level_attribute301

        public static final org.antlr.runtime.BitSet FOLLOW_28_in_cls_level_attribute301
      • FOLLOW_NAME_in_cls_level_attribute303

        public static final org.antlr.runtime.BitSet FOLLOW_NAME_in_cls_level_attribute303
      • FOLLOW_ASSIGNMENT_in_cls_level_attribute305

        public static final org.antlr.runtime.BitSet FOLLOW_ASSIGNMENT_in_cls_level_attribute305
      • FOLLOW_attr_in_cls_level_attribute307

        public static final org.antlr.runtime.BitSet FOLLOW_attr_in_cls_level_attribute307
      • FOLLOW_27_in_cls_level_attribute309

        public static final org.antlr.runtime.BitSet FOLLOW_27_in_cls_level_attribute309
      • FOLLOW_adjective_in_cls339

        public static final org.antlr.runtime.BitSet FOLLOW_adjective_in_cls339
      • FOLLOW_NAME_in_cls342

        public static final org.antlr.runtime.BitSet FOLLOW_NAME_in_cls342
      • FOLLOW_TEXTUAL_VALUE_in_cls345

        public static final org.antlr.runtime.BitSet FOLLOW_TEXTUAL_VALUE_in_cls345
      • FOLLOW_cls_body_in_cls349

        public static final org.antlr.runtime.BitSet FOLLOW_cls_body_in_cls349
      • FOLLOW_27_in_cls353

        public static final org.antlr.runtime.BitSet FOLLOW_27_in_cls353
      • FOLLOW_LBRACKET_in_cls_body362

        public static final org.antlr.runtime.BitSet FOLLOW_LBRACKET_in_cls_body362
      • FOLLOW_cls_contents_in_cls_body365

        public static final org.antlr.runtime.BitSet FOLLOW_cls_contents_in_cls_body365
      • FOLLOW_RBRACKET_in_cls_body368

        public static final org.antlr.runtime.BitSet FOLLOW_RBRACKET_in_cls_body368
      • FOLLOW_ADJECTIVE_PREFIX_in_adjective391

        public static final org.antlr.runtime.BitSet FOLLOW_ADJECTIVE_PREFIX_in_adjective391
      • FOLLOW_NAME_in_adjective397

        public static final org.antlr.runtime.BitSet FOLLOW_NAME_in_adjective397
      • FOLLOW_feature_in_cls_contents420

        public static final org.antlr.runtime.BitSet FOLLOW_feature_in_cls_contents420
      • FOLLOW_adjective_in_cls_contents424

        public static final org.antlr.runtime.BitSet FOLLOW_adjective_in_cls_contents424
      • FOLLOW_NAME_in_feature431

        public static final org.antlr.runtime.BitSet FOLLOW_NAME_in_feature431
      • FOLLOW_ASSIGNMENT_in_feature434

        public static final org.antlr.runtime.BitSet FOLLOW_ASSIGNMENT_in_feature434
      • FOLLOW_feature_contents_in_feature437

        public static final org.antlr.runtime.BitSet FOLLOW_feature_contents_in_feature437
      • FOLLOW_attr_in_feature_contents444

        public static final org.antlr.runtime.BitSet FOLLOW_attr_in_feature_contents444
      • FOLLOW_refs_in_feature_contents448

        public static final org.antlr.runtime.BitSet FOLLOW_refs_in_feature_contents448
      • FOLLOW_containments_in_feature_contents452

        public static final org.antlr.runtime.BitSet FOLLOW_containments_in_feature_contents452
      • FOLLOW_attr_value_in_attr459

        public static final org.antlr.runtime.BitSet FOLLOW_attr_value_in_attr459
      • FOLLOW_COMMA_in_attr462

        public static final org.antlr.runtime.BitSet FOLLOW_COMMA_in_attr462
      • FOLLOW_attr_value_in_attr465

        public static final org.antlr.runtime.BitSet FOLLOW_attr_value_in_attr465
      • FOLLOW_NULL_in_attr471

        public static final org.antlr.runtime.BitSet FOLLOW_NULL_in_attr471
      • FOLLOW_TEXTUAL_VALUE_in_attr_value478

        public static final org.antlr.runtime.BitSet FOLLOW_TEXTUAL_VALUE_in_attr_value478
      • FOLLOW_NUMERIC_VALUE_in_attr_value482

        public static final org.antlr.runtime.BitSet FOLLOW_NUMERIC_VALUE_in_attr_value482
      • FOLLOW_bool_in_attr_value486

        public static final org.antlr.runtime.BitSet FOLLOW_bool_in_attr_value486
      • FOLLOW_enum_value_in_attr_value490

        public static final org.antlr.runtime.BitSet FOLLOW_enum_value_in_attr_value490
      • FOLLOW_set_in_bool0

        public static final org.antlr.runtime.BitSet FOLLOW_set_in_bool0
      • FOLLOW_ref_in_refs508

        public static final org.antlr.runtime.BitSet FOLLOW_ref_in_refs508
      • FOLLOW_COMMA_in_refs511

        public static final org.antlr.runtime.BitSet FOLLOW_COMMA_in_refs511
      • FOLLOW_ref_in_refs514

        public static final org.antlr.runtime.BitSet FOLLOW_ref_in_refs514
      • FOLLOW_NAME_in_ref532

        public static final org.antlr.runtime.BitSet FOLLOW_NAME_in_ref532
      • FOLLOW_TEXTUAL_VALUE_in_ref534

        public static final org.antlr.runtime.BitSet FOLLOW_TEXTUAL_VALUE_in_ref534
      • FOLLOW_cls_in_containments557

        public static final org.antlr.runtime.BitSet FOLLOW_cls_in_containments557
      • FOLLOW_COMMA_in_containments560

        public static final org.antlr.runtime.BitSet FOLLOW_COMMA_in_containments560
      • FOLLOW_cls_in_containments563

        public static final org.antlr.runtime.BitSet FOLLOW_cls_in_containments563
      • FOLLOW_NAME_in_enum_value572

        public static final org.antlr.runtime.BitSet FOLLOW_NAME_in_enum_value572
    • Constructor Detail

      • HutnParser

        public HutnParser​(org.antlr.runtime.TokenStream input)
      • HutnParser

        public HutnParser​(org.antlr.runtime.TokenStream input,
                          org.antlr.runtime.RecognizerSharedState state)
    • Method Detail

      • setTreeAdaptor

        public void setTreeAdaptor​(org.antlr.runtime.tree.TreeAdaptor adaptor)
        Specified by:
        setTreeAdaptor in class EpsilonParser
      • getTokenNames

        public String[] getTokenNames()
        Overrides:
        getTokenNames in class org.antlr.runtime.BaseRecognizer
      • getGrammarFileName

        public String getGrammarFileName()
        Overrides:
        getGrammarFileName in class org.antlr.runtime.BaseRecognizer
      • document

        public final HutnParser.document_return document()
                                                  throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • pkg

        public final HutnParser.pkg_return pkg()
                                        throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • pkg_contents

        public final HutnParser.pkg_contents_return pkg_contents()
                                                          throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • assoc_instance

        public final HutnParser.assoc_instance_return assoc_instance()
                                                              throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • infix_assoc

        public final HutnParser.infix_assoc_return infix_assoc()
                                                        throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • assoc_block

        public final HutnParser.assoc_block_return assoc_block()
                                                        throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • assoc_contents

        public final HutnParser.assoc_contents_return assoc_contents()
                                                              throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • cls_level_attribute

        public final HutnParser.cls_level_attribute_return cls_level_attribute()
                                                                        throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • cls

        public final HutnParser.cls_return cls()
                                        throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • cls_body

        public final HutnParser.cls_body_return cls_body()
                                                  throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • adjective

        public final HutnParser.adjective_return adjective()
                                                    throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • cls_contents

        public final HutnParser.cls_contents_return cls_contents()
                                                          throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • feature

        public final HutnParser.feature_return feature()
                                                throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • feature_contents

        public final HutnParser.feature_contents_return feature_contents()
                                                                  throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • attr

        public final HutnParser.attr_return attr()
                                          throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • attr_value

        public final HutnParser.attr_value_return attr_value()
                                                      throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • bool

        public final HutnParser.bool_return bool()
                                          throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • refs

        public final HutnParser.refs_return refs()
                                          throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • ref

        public final HutnParser.ref_return ref()
                                        throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • containments

        public final HutnParser.containments_return containments()
                                                          throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException
      • enum_value

        public final HutnParser.enum_value_return enum_value()
                                                      throws org.antlr.runtime.RecognitionException
        Throws:
        org.antlr.runtime.RecognitionException