;;; body_instantiation_conflict-wy.el --- Generated parser support file

;; Copyright (C) 2013 Stephen Leake.  All Rights Reserved.

;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 3, or (at
;; your option) any later version.
;;
;; This software is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;; General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.

(require 'wisi)
(require 'semantic/lex)
(require 'wisi-compile)

(defconst body_instantiation_conflict-wy--keyword-table
  (semantic-lex-make-keyword-table
   '(
    ("begin" . BEGIN)
    ("end" . END)
    ("is" . IS)
    ("(" . LEFT_PAREN)
    ("new" . NEW)
    ("null" . NULL)
    ("procedure" . PROCEDURE)
    (")" . RIGHT_PAREN)
    )
   nil)
  "Table of language keywords.")

(defconst body_instantiation_conflict-wy--token-table
  (semantic-lex-make-type-table
   '(
     ("punctuation"
      (SEMICOLON . ";")
     )
     ("symbol"
      (IDENTIFIER)
     )
     ("string"
      (STRING_LITERAL)
     )
    )
   nil)
  "Table of language tokens.")

(defconst body_instantiation_conflict-wy--parse-table
   (wisi-compile-grammar
   '((SEMICOLON IDENTIFIER STRING_LITERAL BEGIN END IS LEFT_PAREN NEW NULL PROCEDURE RIGHT_PAREN )
     ((compilation_unit
       ((library_item library_item )
        (setq wisi-test-success t)))
      (library_item
       ((subprogram_body ))
       ((generic_instantiation )))
      (subprogram_body
       ((subprogram_specification IS BEGIN NULL END SEMICOLON )
        `,(wisi-statement-action 1 'statement-start 6 'statement-end)))
      (subprogram_specification
       ((PROCEDURE IDENTIFIER parameter_list )))
      (parameter_list
       (())
       ((LEFT_PAREN IDENTIFIER RIGHT_PAREN )))
      (generic_instantiation
       ((PROCEDURE IDENTIFIER IS NEW IDENTIFIER LEFT_PAREN IDENTIFIER RIGHT_PAREN SEMICOLON )
        `,(wisi-statement-action 1 'statement-start 9 'statement-end))
       ((STRING_LITERAL ))))
     [((default . error) (STRING_LITERAL .  1) (PROCEDURE .  2))
      ((default . error) ($EOI . (generic_instantiation . 1)) (PROCEDURE . (generic_instantiation . 1)) (STRING_LITERAL . (generic_instantiation . 1)))
      ((default . error) (IDENTIFIER .  11))
      ((default . error) ($EOI .  10))
      ((default . error) (STRING_LITERAL .  1) (PROCEDURE .  2))
      ((default . error) ($EOI . (library_item . 0)) (STRING_LITERAL . (library_item . 0)) (PROCEDURE . (library_item . 0)))
      ((default . error) (IS .  8))
      ((default . error) ($EOI . (library_item . 1)) (STRING_LITERAL . (library_item . 1)) (PROCEDURE . (library_item . 1)))
      ((default . error) (BEGIN .  15))
      ((default . error) ($EOI . (compilation_unit . 0)))
      ((default . error) ($EOI . accept) (RIGHT_PAREN . accept) (PROCEDURE . accept) (NULL . accept) (NEW . accept) (LEFT_PAREN . accept) (IS . accept) (END . accept) (BEGIN . accept) (STRING_LITERAL . accept) (IDENTIFIER . accept) (SEMICOLON . accept))
      ((default . error) (IS . ( 12 (parameter_list . 0))) (LEFT_PAREN .  13))
      ((default . error) (NEW .  18))
      ((default . error) (IDENTIFIER .  17))
      ((default . error) (IS . (subprogram_specification . 0)))
      ((default . error) (NULL .  16))
      ((default . error) (END .  21))
      ((default . error) (RIGHT_PAREN .  20))
      ((default . error) (IDENTIFIER .  19))
      ((default . error) (LEFT_PAREN .  23))
      ((default . error) (IS . (parameter_list . 1)))
      ((default . error) (SEMICOLON .  22))
      ((default . error) (STRING_LITERAL . (subprogram_body . 0)) (PROCEDURE . (subprogram_body . 0)) ($EOI . (subprogram_body . 0)))
      ((default . error) (IDENTIFIER .  24))
      ((default . error) (RIGHT_PAREN .  25))
      ((default . error) (SEMICOLON .  26))
      ((default . error) ($EOI . (generic_instantiation . 0)) (PROCEDURE . (generic_instantiation . 0)) (STRING_LITERAL . (generic_instantiation . 0)))]
     [((compilation_unit . 3)(library_item . 4)(subprogram_body . 5)(subprogram_specification . 6)(generic_instantiation . 7))
      nil
      nil
      nil
      ((library_item . 9)(subprogram_body . 5)(subprogram_specification . 6)(generic_instantiation . 7))
      nil
      nil
      nil
      nil
      nil
      nil
      ((parameter_list . 14))
      nil
      nil
      nil
      nil
      nil
      nil
      nil
      nil
      nil
      nil
      nil
      nil
      nil
      nil
      nil]))
  "Parser table.")

(provide 'body_instantiation_conflict-wy)

;; end of file
