context: // This code was generated by the Gardens Point Parser Generator
  // Copyright (c) Wayne Kelly, QUT 2005-2010
  // (see accompanying GPPGcopyright.rtf)
  
  // GPPG version 1.4.5
  // Machine:  LUKAS-PC
  // DateTime: 30.5.2011 23:03:04
  // UserName: Lukas
  // Input file <D:\Programovani\VS.2010\SimpleConverter\plugins\Beamer2PPT\Conversion\Parser.y - 30.5.2011 22:16:24>
  
  // options: conflicts no-lines diagnose & report gplex conflicts
  
  using System;
  using System.Collections.Generic;
  using System.Globalization;
  using System.Text;
  using QUT.Gppg;
  using SimpleConverter.Contract;
  
  namespace SimpleConverter.Plugin.Beamer2PPT
  {
  public enum Tokens {error=126,
      EOF=127,DOCUMENTCLASS=128,USEPACKAGE=129,USETHEME=130,TITLE=131,AUTHOR=132,
      TODAY=133,DATE=134,TITLEPAGE=135,BEGIN_DOCUMENT=136,END_DOCUMENT=137,INSTITUTE=138,
      BEGIN_FRAME=139,END_FRAME=140,FRAME=141,FRAMETITLE=142,FRAMESUBTITLE=143,PAUSE=144,
      BEGIN_ITEMIZE=145,END_ITEMIZE=146,BEGIN_ENUMERATE=147,END_ENUMERATE=148,BEGIN_DESCRIPTION=149,END_DESCRIPTION=150,
      BEGIN_TABULAR=151,END_TABULAR=152,SECTION=153,SUBSECTION=154,SUBSUBSECTION=155,OVERLAY=156,
      OPTIONAL=157,TEXTBF=158,TEXTIT=159,TEXTTT=160,TEXTSC=161,NL=162,
      ENDROW=163,COLOR=164,BFSERIES=165,TTFAMILY=166,ITSHAPE=167,SCSHAPE=168,
      TINY=169,SCRIPTSIZE=170,FOOTNOTESIZE=171,SMALL=172,NORMALSIZE=173,LARGE=174,
      LARGE2=175,LARGE3=176,HUGE=177,HUGE2=178,ITEM=179,UNDERLINE=180,
      AND=181,TEXTCOLOR=182,HLINE=183,CLINE=184,MULTICOLUMN=185,GRAPHICSPATH=186,
      INCLUDEGRAPHICS=187,STRING=188,VERB=189};
  
  public struct ValueType
  {
      public string Text;
      public Node documentNode;
      public List<Node> nodeList;
      public HashSet<Node> nodeSet;
  }
  // Abstract base class for GPLEX scanners
  public abstract class ScanBase : AbstractScanner<ValueType,LexLocation> {
    private LexLocation __yylloc = new LexLocation();
    public override LexLocation yylloc { get { return __yylloc; } set { __yylloc = value; } }
    protected virtual bool yywrap() { return true; }
  }
  
  public class Parser: ShiftReduceParser<ValueType, LexLocation>
  {
    // Verbatim content from D:\Programovani\VS.2010\SimpleConverter\plugins\Beamer2PPT\Conversion\Parser.y - 30.5.2011 22:16:24
      public Node Document { get; private set; }
      public int SlideCount { get; private set; }
      public List<SectionRecord> SectionTable { get; private set; }
      public Dictionary<int, FrametitleRecord> FrametitleTable { get; private set; }
    // End verbatim content from D:\Programovani\VS.2010\SimpleConverter\plugins\Beamer2PPT\Conversion\Parser.y - 30.5.2011 22:16:24
  
  #pragma warning disable 649
    private static Dictionary<int, string> aliasses;
  #pragma warning restore 649
    private static Rule[] rules = new Rule[102];
    private static State[] states = new State[250];
    private static string[] nonTerms = new string[] {
        "document", "command", "groupcommand", "standalonecommand", "commands", 
        "slide", "titlesettings", "body", "environment", "documentclass", "preambule", 
        "image", "simpleformtext", "slidecontent", "bodycontent", "items_list", 
        "table_rows", "table_cols", "table_line", "path_list", "optional", "overlay", 
        "$accept", "sectionsettings", };
  
    static Parser() {
      states[0] = new State(new int[]{128,245},new int[]{-1,1,-10,3});
      states[1] = new State(new int[]{127,2});
      states[2] = new State(-1);
      states[3] = new State(-4,new int[]{-11,4});
      states[4] = new State(new int[]{129,6,186,18,126,28,136,29,157,11,131,37,132,98,138,103,134,108,130,-88},new int[]{-8,5,-21,12,-7,17});
      states[5] = new State(-2);
      states[6] = new State(new int[]{157,11,123,-88},new int[]{-21,7});
      states[7] = new State(new int[]{123,8});
      states[8] = new State(new int[]{188,9});
      states[9] = new State(new int[]{125,10});
      states[10] = new State(-5);
      states[11] = new State(-89);
      states[12] = new State(new int[]{130,13});
      states[13] = new State(new int[]{123,14});
      states[14] = new State(new int[]{188,15});
      states[15] = new State(new int[]{125,16});
      states[16] = new State(-6);
      states[17] = new State(-7);
      states[18] = new State(new int[]{123,19});
      states[19] = new State(new int[]{123,25},new int[]{-20,20});
      states[20] = new State(new int[]{125,21,123,22});
      states[21] = new State(-8);
      states[22] = new State(new int[]{188,23});
      states[23] = new State(new int[]{125,24});
      states[24] = new State(-11);
      states[25] = new State(new int[]{188,26});
      states[26] = new State(new int[]{125,27});
      states[27] = new State(-10);
      states[28] = new State(-9);
      states[29] = new State(-20,new int[]{-15,30});
      states[30] = new State(new int[]{137,31,188,35,126,36,131,37,132,98,138,103,134,108,153,112,154,116,155,120,139,124,141,240},new int[]{-7,32,-24,33,-6,34});
      states[31] = new State(-19);
      states[32] = new State(-21);
      states[33] = new State(-22);
      states[34] = new State(-23);
      states[35] = new State(-24);
      states[36] = new State(-25);
      states[37] = new State(new int[]{123,38});
      states[38] = new State(-92,new int[]{-13,39});
      states[39] = new State(new int[]{125,40,188,47,162,48,123,49,133,52,144,53,181,54,189,55,158,56,159,60,160,63,161,66,180,69,182,72,165,78,166,79,167,80,168,81,169,82,170,83,171,84,172,85,173,86,174,87,175,88,176,89,177,90,178,91,164,92},new int[]{-2,41,-3,45});
      states[40] = new State(-12);
      states[41] = new State(new int[]{123,42});
      states[42] = new State(-92,new int[]{-13,43});
      states[43] = new State(new int[]{125,44,188,47,162,48,123,49,133,52,144,53,181,54,189,55,158,56,159,60,160,63,161,66,180,69,182,72,165,78,166,79,167,80,168,81,169,82,170,83,171,84,172,85,173,86,174,87,175,88,176,89,177,90,178,91,164,92},new int[]{-2,41,-3,45});
      states[44] = new State(-93);
      states[45] = new State(-92,new int[]{-13,46});
      states[46] = new State(new int[]{188,47,162,48,123,49,133,52,144,53,181,54,189,55,158,56,159,60,160,63,161,66,180,69,182,72,165,78,166,79,167,80,168,81,169,82,170,83,171,84,172,85,173,86,174,87,175,88,176,89,177,90,178,91,164,92,125,-94},new int[]{-2,41,-3,45});
      states[47] = new State(-95);
      states[48] = new State(-96);
      states[49] = new State(-92,new int[]{-13,50});
      states[50] = new State(new int[]{125,51,188,47,162,48,123,49,133,52,144,53,181,54,189,55,158,56,159,60,160,63,161,66,180,69,182,72,165,78,166,79,167,80,168,81,169,82,170,83,171,84,172,85,173,86,174,87,175,88,176,89,177,90,178,91,164,92},new int[]{-2,41,-3,45});
      states[51] = new State(-97);
      states[52] = new State(-98);
      states[53] = new State(-99);
      states[54] = new State(-100);
      states[55] = new State(-101);
      states[56] = new State(new int[]{156,59,157,-90,123,-90},new int[]{-22,57});
      states[57] = new State(new int[]{157,11,123,-88},new int[]{-21,58});
      states[58] = new State(-61);
      states[59] = new State(-91);
      states[60] = new State(new int[]{156,59,157,-90,123,-90},new int[]{-22,61});
      states[61] = new State(new int[]{157,11,123,-88},new int[]{-21,62});
      states[62] = new State(-62);
      states[63] = new State(new int[]{156,59,157,-90,123,-90},new int[]{-22,64});
      states[64] = new State(new int[]{157,11,123,-88},new int[]{-21,65});
      states[65] = new State(-63);
      states[66] = new State(new int[]{156,59,157,-90,123,-90},new int[]{-22,67});
      states[67] = new State(new int[]{157,11,123,-88},new int[]{-21,68});
      states[68] = new State(-64);
      states[69] = new State(new int[]{156,59,157,-90,123,-90},new int[]{-22,70});
      states[70] = new State(new int[]{157,11,123,-88},new int[]{-21,71});
      states[71] = new State(-65);
      states[72] = new State(new int[]{156,59,157,-90,123,-90},new int[]{-22,73});
      states[73] = new State(new int[]{157,11,123,-88},new int[]{-21,74});
      states[74] = new State(new int[]{123,75});
      states[75] = new State(new int[]{188,76});
      states[76] = new State(new int[]{125,77});
      states[77] = new State(-66);
      states[78] = new State(-67);
      states[79] = new State(-68);
      states[80] = new State(-69);
      states[81] = new State(-70);
      states[82] = new State(-71);
      states[83] = new State(-72);
      states[84] = new State(-73);
      states[85] = new State(-74);
      states[86] = new State(-75);
      states[87] = new State(-76);
      states[88] = new State(-77);
      states[89] = new State(-78);
      states[90] = new State(-79);
      states[91] = new State(-80);
      states[92] = new State(new int[]{156,59,157,-90,123,-90},new int[]{-22,93});
      states[93] = new State(new int[]{157,11,123,-88},new int[]{-21,94});
      states[94] = new State(new int[]{123,95});
      states[95] = new State(new int[]{188,96});
      states[96] = new State(new int[]{125,97});
      states[97] = new State(-81);
      states[98] = new State(new int[]{157,11,123,-88},new int[]{-21,99});
      states[99] = new State(new int[]{123,100});
      states[100] = new State(-92,new int[]{-13,101});
      states[101] = new State(new int[]{125,102,188,47,162,48,123,49,133,52,144,53,181,54,189,55,158,56,159,60,160,63,161,66,180,69,182,72,165,78,166,79,167,80,168,81,169,82,170,83,171,84,172,85,173,86,174,87,175,88,176,89,177,90,178,91,164,92},new int[]{-2,41,-3,45});
      states[102] = new State(-13);
      states[103] = new State(new int[]{157,11,123,-88},new int[]{-21,104});
      states[104] = new State(new int[]{123,105});
      states[105] = new State(-92,new int[]{-13,106});
      states[106] = new State(new int[]{125,107,188,47,162,48,123,49,133,52,144,53,181,54,189,55,158,56,159,60,160,63,161,66,180,69,182,72,165,78,166,79,167,80,168,81,169,82,170,83,171,84,172,85,173,86,174,87,175,88,176,89,177,90,178,91,164,92},new int[]{-2,41,-3,45});
      states[107] = new State(-14);
      states[108] = new State(new int[]{123,109});
      states[109] = new State(-92,new int[]{-13,110});
      states[110] = new State(new int[]{125,111,188,47,162,48,123,49,133,52,144,53,181,54,189,55,158,56,159,60,160,63,161,66,180,69,182,72,165,78,166,79,167,80,168,81,169,82,170,83,171,84,172,85,173,86,174,87,175,88,176,89,177,90,178,91,164,92},new int[]{-2,41,-3,45});
      states[111] = new State(-15);
      states[112] = new State(new int[]{123,113});
      states[113] = new State(-92,new int[]{-13,114});
      states[114] = new State(new int[]{125,115,188,47,162,48,123,49,133,52,144,53,181,54,189,55,158,56,159,60,160,63,161,66,180,69,182,72,165,78,166,79,167,80,168,81,169,82,170,83,171,84,172,85,173,86,174,87,175,88,176,89,177,90,178,91,164,92},new int[]{-2,41,-3,45});
      states[115] = new State(-16);
      states[116] = new State(new int[]{123,117});
      states[117] = new State(-92,new int[]{-13,118});
      states[118] = new State(new int[]{125,119,188,47,162,48,123,49,133,52,144,53,181,54,189,55,158,56,159,60,160,63,161,66,180,69,182,72,165,78,166,79,167,80,168,81,169,82,170,83,171,84,172,85,173,86,174,87,175,88,176,89,177,90,178,91,164,92},new int[]{-2,41,-3,45});
      states[119] = new State(-17);
      states[120] = new State(new int[]{123,121});
      states[121] = new State(-92,new int[]{-13,122});
      states[122] = new State(new int[]{125,123,188,47,162,48,123,49,133,52,144,53,181,54,189,55,158,56,159,60,160,63,161,66,180,69,182,72,165,78,166,79,167,80,168,81,169,82,170,83,171,84,172,85,173,86,174,87,175,88,176,89,177,90,178,91,164,92},new int[]{-2,41,-3,45});
      states[123] = new State(-18);
      states[124] = new State(new int[]{157,11,123,-88,126,-88,140,-88,188,-88,135,-88,153,-88,154,-88,155,-88,145,-88,147,-88,149,-88,151,-88,158,-88,159,-88,160,-88,161,-88,180,-88,182,-88,165,-88,166,-88,167,-88,168,-88,169,-88,170,-88,171,-88,172,-88,173,-88,174,-88,175,-88,176,-88,177,-88,178,-88,164,-88,133,-88,144,-88,142,-88,143,-88,162,-88,189,-88,187,-88},new int[]{-21,125});
      states[125] = new State(new int[]{123,230,126,193,140,-30,188,-30,135,-30,153,-30,154,-30,155,-30,145,-30,147,-30,149,-30,151,-30,158,-30,159,-30,160,-30,161,-30,180,-30,182,-30,165,-30,166,-30,167,-30,168,-30,169,-30,170,-30,171,-30,172,-30,173,-30,174,-30,175,-30,176,-30,177,-30,178,-30,164,-30,133,-30,144,-30,142,-30,143,-30,162,-30,189,-30,187,-30},new int[]{-14,126});
      states[126] = new State(new int[]{140,127,123,128,188,131,135,136,153,112,154,116,155,120,145,137,147,145,149,153,151,157,158,56,159,60,160,63,161,66,180,69,182,72,165,78,166,79,167,80,168,81,169,82,170,83,171,84,172,85,173,86,174,87,175,88,176,89,177,90,178,91,164,92,133,172,144,173,142,174,143,180,162,186,189,187,187,188},new int[]{-24,132,-9,133,-5,134,-12,135,-2,165,-3,169,-4,171});
      states[127] = new State(-26);
      states[128] = new State(new int[]{126,193,125,-30,123,-30,188,-30,135,-30,153,-30,154,-30,155,-30,145,-30,147,-30,149,-30,151,-30,158,-30,159,-30,160,-30,161,-30,180,-30,182,-30,165,-30,166,-30,167,-30,168,-30,169,-30,170,-30,171,-30,172,-30,173,-30,174,-30,175,-30,176,-30,177,-30,178,-30,164,-30,133,-30,144,-30,142,-30,143,-30,162,-30,189,-30,187,-30},new int[]{-14,129});
      states[129] = new State(new int[]{125,130,123,128,188,131,135,136,153,112,154,116,155,120,145,137,147,145,149,153,151,157,158,56,159,60,160,63,161,66,180,69,182,72,165,78,166,79,167,80,168,81,169,82,170,83,171,84,172,85,173,86,174,87,175,88,176,89,177,90,178,91,164,92,133,172,144,173,142,174,143,180,162,186,189,187,187,188},new int[]{-24,132,-9,133,-5,134,-12,135,-2,165,-3,169,-4,171});
      states[130] = new State(-31);
      states[131] = new State(-32);
      states[132] = new State(-33);
      states[133] = new State(-34);
      states[134] = new State(-35);
      states[135] = new State(-36);
      states[136] = new State(-37);
      states[137] = new State(new int[]{157,11,179,-88},new int[]{-21,138});
      states[138] = new State(new int[]{179,149},new int[]{-16,139});
  
gt:     states[139] = new State(new int[]{146,140,179,141});