// This file was generated by qlalr - DO NOT EDIT!
#ifndef EXPRESSIONTABLE_P_H
#define EXPRESSIONTABLE_P_H

class ExpressionTable
{
public:
  enum VariousConstants {
    EOF_SYMBOL = 0,
    otherwise_prec = 30,
    tAdd = 1,
    tAssig = 4,
    tAt = 27,
    tColon = 26,
    tComa = 11,
    tComment = 28,
    tDiv = 6,
    tEq = 20,
    tGeq = 24,
    tGt = 22,
    tId = 8,
    tLambda = 9,
    tLcb = 14,
    tLeq = 23,
    tLimits = 5,
    tLpr = 12,
    tLsp = 16,
    tLt = 21,
    tMul = 3,
    tNeq = 25,
    tPipe = 18,
    tPow = 7,
    tQm = 10,
    tRcb = 15,
    tRpr = 13,
    tRsp = 17,
    tString = 29,
    tSub = 2,
    tVal = 19,
    uminus_prec = 31,

    ACCEPT_STATE = 104,
    RULE_COUNT = 58,
    STATE_COUNT = 107,
    TERMINAL_COUNT = 32,
    NON_TERMINAL_COUNT = 22,

    GOTO_INDEX_OFFSET = 107,
    GOTO_INFO_OFFSET = 435,
    GOTO_CHECK_OFFSET = 435
  };

  static const char  *const    spell [];
  static const short             lhs [];
  static const short             rhs [];

#ifndef QLALR_NO_EXPRESSIONTABLE_DEBUG_INFO
  static const int     rule_index [];
  static const int      rule_info [];
#endif // QLALR_NO_EXPRESSIONTABLE_DEBUG_INFO

  static const short    goto_default [];
  static const short  action_default [];
  static const short    action_index [];
  static const short     action_info [];
  static const short    action_check [];

  static inline int nt_action (int state, int nt)
  {
    const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
    if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
      return goto_default [nt];

    return action_info [GOTO_INFO_OFFSET + yyn];
  }

  static inline int t_action (int state, int token)
  {
    const int yyn = action_index [state] + token;

    if (yyn < 0 || action_check [yyn] != token)
      return - action_default [state];

    return action_info [yyn];
  }
};


#endif // EXPRESSIONTABLE_P_H

