~openteachermaintainers/opengamedesigner/trunk

« back to all changes in this revision

Viewing changes to parsetab.py

  • Committer: Marten de Vries
  • Date: 2012-06-03 19:50:30 UTC
  • Revision ID: marten94@gmail.com-20120603195030-4o9baw5lcxm3ckc7
A lot of updates, but currently still broken.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
_lr_method = 'LALR'
7
7
 
8
 
_lr_signature = b'Wd\xfb\xec\x18\x18\xe4\xf8\xa2&\x0e6\xf8\xe3\xfbh'
 
8
_lr_signature = b'\t\xe6\xd9\xb9\x91\xc6\x15\xa9\x87n\x8f\x8d\xb9\x9f\x07\xa2'
9
9
    
10
 
_lr_action_items = {'SOUND':([0,2,7,14,15,24,32,35,41,49,50,60,],[1,-4,1,-3,1,-2,-5,-7,-10,-6,-8,-9,]),'UNDEFINED':([63,],[86,]),'OBJECT':([0,2,7,14,15,24,32,35,41,49,50,60,],[5,-4,5,-3,5,-2,-5,-7,-10,-6,-8,-9,]),'DOUBLENEWLINE':([2,7,14,15,18,24,27,32,35,36,40,41,42,49,50,60,74,95,109,110,117,121,122,124,125,126,127,130,132,133,134,135,136,],[-4,15,-3,-1,-12,-2,36,-5,-7,-16,-13,-10,-11,-6,-8,-9,-27,-12,-15,-14,36,-23,-21,-22,-24,-19,-17,-12,36,-12,-18,36,-20,]),'NUMBER':([18,27,30,36,38,40,42,44,47,51,63,66,72,73,74,75,77,78,79,80,81,88,89,92,94,95,99,106,108,109,110,114,117,121,122,124,125,126,127,129,130,132,133,134,135,136,],[-12,37,54,-16,37,-13,-11,37,37,54,37,37,37,37,-27,37,37,37,37,37,37,37,37,37,37,-12,37,54,54,-15,-14,37,37,-23,-21,-22,-24,-19,-17,37,-12,37,-12,-18,37,-20,]),'GAME':([0,2,7,14,15,24,32,35,41,49,50,60,],[6,-4,6,-3,6,-2,-5,-7,-10,-6,-8,-9,]),'MINUS':([18,27,36,37,38,39,40,42,43,44,45,46,47,48,61,62,63,66,70,71,72,73,74,75,77,78,79,80,81,87,88,89,91,92,93,94,95,96,97,98,99,100,101,102,103,104,109,110,111,112,113,114,115,116,117,118,121,122,123,124,125,126,127,129,130,131,132,133,134,135,136,],[-12,38,-16,-44,38,-43,-13,-11,67,38,-25,-45,38,80,-46,-32,38,38,80,80,38,38,-27,38,38,38,38,38,38,80,38,38,80,38,-26,38,-12,80,80,80,38,-35,80,-33,-34,-36,-15,-14,80,80,-39,38,80,80,38,80,-23,-21,80,-22,-24,-19,-17,38,-12,80,38,-12,-18,38,-20,]),'DOT':([43,45,61,93,],[68,-25,68,-26,]),'DIVIDE':([37,39,43,45,46,48,61,62,70,71,87,91,93,96,97,98,100,101,102,103,104,111,112,113,115,116,118,123,131,],[-44,-43,69,-25,-45,81,-46,81,81,81,81,81,-26,81,81,81,-35,81,81,81,-36,81,81,-39,81,81,81,81,81,]),'COMMENT':([18,27,36,40,42,74,95,109,110,117,121,122,124,125,126,127,130,132,133,134,135,136,],[-12,40,-16,-13,-11,-27,-12,-15,-14,40,-23,-21,-22,-24,-19,-17,-12,40,-12,-18,40,-20,]),'SEMICOLON':([37,39,43,45,46,48,61,62,71,86,87,93,96,97,98,100,101,102,103,104,111,112,113,115,116,118,],[-44,-43,-46,-25,-45,74,-46,-32,-31,109,110,-26,-37,-38,-29,-35,-30,-33,-34,-36,121,122,-39,124,125,-28,]),'RPAREN':([37,39,45,46,61,62,66,71,90,91,93,96,97,98,100,101,102,103,104,113,118,123,],[-44,-43,-25,-45,-46,-32,-42,-31,113,-41,-26,-37,-38,-29,-35,-30,-33,-34,-36,-39,-28,-40,]),'ROOM':([0,2,7,14,15,24,32,35,41,49,50,60,],[8,-4,8,-3,8,-2,-5,-7,-10,-6,-8,-9,]),'SMALLERTHAN':([21,37,39,43,45,46,48,61,62,70,71,87,91,93,96,97,98,100,101,102,103,104,111,112,113,115,116,118,123,131,],[31,-44,-43,-46,-25,-45,75,-46,-32,75,-31,75,75,-26,-37,-38,75,-35,75,-33,-34,-36,75,75,-39,75,75,-28,75,75,]),'SCRIPT':([0,2,7,14,15,24,32,35,41,49,50,60,],[3,-4,3,-3,3,-2,-5,-7,-10,-6,-8,-9,]),'IMAGE':([0,2,7,14,15,24,32,35,41,49,50,60,],[4,-4,4,-3,4,-2,-5,-7,-10,-6,-8,-9,]),'LCURLYBRACKET':([6,9,10,11,12,16,30,37,39,45,46,51,61,62,70,71,93,96,97,98,100,101,102,103,104,106,108,113,118,128,131,],[13,17,18,19,20,25,53,-44,-43,-25,-45,53,-46,-32,95,-31,-26,-37,-38,-29,-35,-30,-33,-34,-36,53,53,-39,-28,130,133,]),'PLUS':([37,39,43,45,46,48,61,62,70,71,87,91,93,96,97,98,100,101,102,103,104,111,112,113,115,116,118,123,131,],[-44,-43,65,-25,-45,79,-46,-32,79,79,79,79,-26,79,79,79,-35,79,-33,-34,-36,79,79,-39,79,79,79,79,79,]),'RCURLYBRACKET':([13,17,18,19,20,22,23,25,26,27,28,29,34,36,40,42,52,53,54,55,56,57,59,74,84,95,105,107,109,110,117,120,121,122,124,125,126,127,130,132,133,134,135,136,],[-48,-48,-12,-48,-48,32,-47,-48,35,41,49,50,60,-16,-13,-11,-58,-48,-56,-50,-57,-55,-49,-27,107,-12,-59,-60,-15,-14,126,-51,-23,-21,-22,-24,-19,-17,-12,134,-12,-18,136,-20,]),'COLON':([21,85,],[30,108,]),'COMMA':([13,17,19,20,22,23,25,26,28,29,34,37,39,45,46,51,52,53,54,55,56,57,59,61,62,66,71,82,83,84,90,91,93,96,97,98,100,101,102,103,104,105,107,113,118,119,120,123,],[-48,-48,-48,-48,33,-47,-48,33,33,33,33,-44,-43,-25,-45,-52,-58,-48,-56,-50,-57,-55,-49,-46,-32,-42,-31,106,-54,33,114,-41,-26,-37,-38,-29,-35,-30,-33,-34,-36,-59,-60,-39,-28,-53,-51,-40,]),'RSQUAREBRACKET':([51,52,54,56,57,82,83,105,107,119,],[-52,-58,-56,-57,-55,105,-54,-59,-60,-53,]),'$end':([2,7,14,15,24,32,35,41,49,50,60,],[-4,0,-3,-1,-2,-5,-7,-10,-6,-8,-9,]),'LSQUAREBRACKET':([30,51,106,108,],[51,51,51,51,]),'STRING':([18,27,30,36,38,40,42,44,47,51,63,66,72,73,74,75,77,78,79,80,81,88,89,92,94,95,99,106,108,109,110,114,117,121,122,124,125,126,127,129,130,132,133,134,135,136,],[-12,39,57,-16,39,-13,-11,39,39,57,39,39,39,39,-27,39,39,39,39,39,39,39,39,39,39,-12,39,57,57,-15,-14,39,39,-23,-21,-22,-24,-19,-17,39,-12,39,-12,-18,39,-20,]),'EQUALS':([37,39,43,45,46,48,61,62,64,65,67,69,70,71,76,87,91,93,96,97,98,100,101,102,103,104,111,112,113,115,116,118,123,131,],[-44,-43,63,-25,-45,76,-46,-32,88,89,92,94,76,76,99,76,76,-26,76,76,76,-35,76,-33,-34,-36,76,76,-39,76,76,-28,76,76,]),'TIMES':([37,39,43,45,46,48,61,62,70,71,87,91,93,96,97,98,100,101,102,103,104,111,112,113,115,116,118,123,131,],[-44,-43,64,-25,-45,77,-46,77,77,77,77,77,-26,77,77,77,-35,77,77,77,-36,77,77,-39,77,77,77,77,77,]),'ELSEIF':([126,127,136,],[-19,129,-20,]),'LPAREN':([43,45,61,93,],[66,-25,66,-26,]),'ELSE':([126,127,136,],[-19,128,-20,]),'IF':([18,27,36,40,42,74,95,109,110,117,121,122,124,125,126,127,130,132,133,134,135,136,],[-12,44,-16,-13,-11,-27,-12,-15,-14,44,-23,-21,-22,-24,-19,-17,-12,44,-12,-18,44,-20,]),'AND':([37,39,43,45,46,48,61,62,70,71,87,91,93,96,97,98,100,101,102,103,104,111,112,113,115,116,118,123,131,],[-44,-43,-46,-25,-45,72,-46,-32,72,-31,72,72,-26,-37,-38,72,-35,72,-33,-34,-36,72,72,-39,72,72,-28,72,72,]),'NAME':([1,3,4,5,8,13,17,18,19,20,25,27,30,31,33,36,38,40,42,44,47,51,53,63,66,68,72,73,74,75,77,78,79,80,81,88,89,92,94,95,99,106,108,109,110,114,117,121,122,124,125,126,127,129,130,132,133,134,135,136,],[9,10,11,12,16,21,21,-12,21,21,21,45,52,58,21,-16,45,-13,-11,45,45,52,21,45,45,93,45,45,-27,45,45,45,45,45,45,45,45,45,45,-12,45,52,52,-15,-14,45,45,-23,-21,-22,-24,-19,-17,45,-12,45,-12,-18,45,-20,]),'LARGERTHAN':([37,39,43,45,46,48,58,61,62,70,71,87,91,93,96,97,98,100,101,102,103,104,111,112,113,115,116,118,123,131,],[-44,-43,-46,-25,-45,78,85,-46,-32,78,-31,78,78,-26,-37,-38,78,-35,78,-33,-34,-36,78,78,-39,78,78,-28,78,78,]),'BOOL':([18,27,30,36,38,40,42,44,47,51,63,66,72,73,74,75,77,78,79,80,81,88,89,92,94,95,99,106,108,109,110,114,117,121,122,124,125,126,127,129,130,132,133,134,135,136,],[-12,46,56,-16,46,-13,-11,46,46,56,46,46,46,46,-27,46,46,46,46,46,46,46,46,46,46,-12,46,56,56,-15,-14,46,46,-23,-21,-22,-24,-19,-17,46,-12,46,-12,-18,46,-20,]),'NOT':([18,27,36,38,40,42,44,47,63,66,72,73,74,75,77,78,79,80,81,88,89,92,94,95,99,109,110,114,117,121,122,124,125,126,127,129,130,132,133,134,135,136,],[-12,47,-16,47,-13,-11,47,47,47,47,47,47,-27,47,47,47,47,47,47,47,47,47,47,-12,47,-15,-14,47,47,-23,-21,-22,-24,-19,-17,47,-12,47,-12,-18,47,-20,]),'OR':([37,39,43,45,46,48,61,62,70,71,87,91,93,96,97,98,100,101,102,103,104,111,112,113,115,116,118,123,131,],[-44,-43,-46,-25,-45,73,-46,-32,73,-31,73,73,-26,-37,-38,73,-35,73,-33,-34,-36,73,73,-39,73,73,-28,73,73,]),}
 
10
_lr_action_items = {'SOUND':([0,2,7,14,15,24,32,35,41,50,51,61,],[1,-4,1,-3,1,-2,-5,-7,-10,-6,-8,-9,]),'UNDEFINED':([64,],[88,]),'OBJECT':([0,2,7,14,15,24,32,35,41,50,51,61,],[5,-4,5,-3,5,-2,-5,-7,-10,-6,-8,-9,]),'DOUBLENEWLINE':([2,7,14,15,18,24,27,32,35,36,40,41,42,50,51,61,76,98,112,113,120,124,125,127,128,129,130,133,135,136,137,138,139,],[-4,15,-3,-1,-12,-2,36,-5,-7,-16,-13,-10,-11,-6,-8,-9,-27,-12,-15,-14,36,-23,-21,-22,-24,-19,-17,-12,36,-12,-18,36,-20,]),'NUMBER':([18,27,30,36,38,40,42,44,45,48,52,64,67,74,75,76,77,79,80,81,82,83,90,91,94,96,98,102,109,111,112,113,117,120,124,125,127,128,129,130,132,133,135,136,137,138,139,],[-12,37,55,-16,37,-13,-11,37,37,37,55,37,37,37,37,-27,37,37,37,37,37,37,37,37,37,37,-12,37,55,55,-15,-14,37,37,-23,-21,-22,-24,-19,-17,37,-12,37,-12,-18,37,-20,]),'GAME':([0,2,7,14,15,24,32,35,41,50,51,61,],[6,-4,6,-3,6,-2,-5,-7,-10,-6,-8,-9,]),'MINUS':([18,27,36,37,38,39,40,42,43,44,45,46,47,48,49,62,63,64,67,71,72,73,74,75,76,77,79,80,81,82,83,89,90,91,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,112,113,114,115,116,117,118,119,120,121,124,125,126,127,128,129,130,132,133,134,135,136,137,138,139,],[-12,38,-16,-45,38,-44,-13,-11,68,38,38,-25,-46,38,82,-47,-33,38,38,82,82,82,38,38,-27,38,38,38,38,38,38,82,38,38,82,38,-26,38,-28,-12,82,82,82,38,-36,82,-34,-35,-37,-15,-14,82,82,-40,38,82,82,38,82,-23,-21,82,-22,-24,-19,-17,38,-12,82,38,-12,-18,38,-20,]),'DOT':([43,46,62,95,],[69,-25,69,-26,]),'DIVIDE':([37,39,43,46,47,49,62,63,71,72,73,89,93,95,97,99,100,101,103,104,105,106,107,114,115,116,118,119,121,126,134,],[-45,-44,70,-25,-46,83,-47,83,83,83,83,83,83,-26,-28,83,83,83,-36,83,83,83,-37,83,83,-40,83,83,83,83,83,]),'COMMENT':([18,27,36,40,42,76,98,112,113,120,124,125,127,128,129,130,133,135,136,137,138,139,],[-12,40,-16,-13,-11,-27,-12,-15,-14,40,-23,-21,-22,-24,-19,-17,-12,40,-12,-18,40,-20,]),'SEMICOLON':([37,39,43,46,47,49,62,63,73,88,89,95,97,99,100,101,103,104,105,106,107,114,115,116,118,119,121,],[-45,-44,-47,-25,-46,76,-47,-33,-32,112,113,-26,-28,-38,-39,-30,-36,-31,-34,-35,-37,124,125,-40,127,128,-29,]),'RPAREN':([37,39,46,47,62,63,67,71,73,92,93,95,97,99,100,101,103,104,105,106,107,116,121,126,],[-45,-44,-25,-46,-47,-33,-43,97,-32,116,-42,-26,-28,-38,-39,-30,-36,-31,-34,-35,-37,-40,-29,-41,]),'ROOM':([0,2,7,14,15,24,32,35,41,50,51,61,],[8,-4,8,-3,8,-2,-5,-7,-10,-6,-8,-9,]),'SMALLERTHAN':([21,37,39,43,46,47,49,62,63,71,72,73,89,93,95,97,99,100,101,103,104,105,106,107,114,115,116,118,119,121,126,134,],[31,-45,-44,-47,-25,-46,77,-47,-33,77,77,-32,77,77,-26,-28,-38,-39,77,-36,77,-34,-35,-37,77,77,-40,77,77,-29,77,77,]),'SCRIPT':([0,2,7,14,15,24,32,35,41,50,51,61,],[3,-4,3,-3,3,-2,-5,-7,-10,-6,-8,-9,]),'IMAGE':([0,2,7,14,15,24,32,35,41,50,51,61,],[4,-4,4,-3,4,-2,-5,-7,-10,-6,-8,-9,]),'LCURLYBRACKET':([6,9,10,11,12,16,30,37,39,46,47,52,62,63,72,73,95,97,99,100,101,103,104,105,106,107,109,111,116,121,131,134,],[13,17,18,19,20,25,54,-45,-44,-25,-46,54,-47,-33,98,-32,-26,-28,-38,-39,-30,-36,-31,-34,-35,-37,54,54,-40,-29,133,136,]),'PLUS':([37,39,43,46,47,49,62,63,71,72,73,89,93,95,97,99,100,101,103,104,105,106,107,114,115,116,118,119,121,126,134,],[-45,-44,66,-25,-46,81,-47,-33,81,81,81,81,81,-26,-28,81,81,81,-36,81,-34,-35,-37,81,81,-40,81,81,81,81,81,]),'RCURLYBRACKET':([13,17,18,19,20,22,23,25,26,27,28,29,34,36,40,42,53,54,55,56,57,58,60,76,86,98,108,110,112,113,120,123,124,125,127,128,129,130,133,135,136,137,138,139,],[-49,-49,-12,-49,-49,32,-48,-49,35,41,50,51,61,-16,-13,-11,-59,-49,-57,-51,-58,-56,-50,-27,110,-12,-60,-61,-15,-14,129,-52,-23,-21,-22,-24,-19,-17,-12,137,-12,-18,139,-20,]),'COLON':([21,87,],[30,111,]),'COMMA':([13,17,19,20,22,23,25,26,28,29,34,37,39,46,47,52,53,54,55,56,57,58,60,62,63,67,73,84,85,86,92,93,95,97,99,100,101,103,104,105,106,107,108,110,116,121,122,123,126,],[-49,-49,-49,-49,33,-48,-49,33,33,33,33,-45,-44,-25,-46,-53,-59,-49,-57,-51,-58,-56,-50,-47,-33,-43,-32,109,-55,33,117,-42,-26,-28,-38,-39,-30,-36,-31,-34,-35,-37,-60,-61,-40,-29,-54,-52,-41,]),'RSQUAREBRACKET':([52,53,55,57,58,84,85,108,110,122,],[-53,-59,-57,-58,-56,108,-55,-60,-61,-54,]),'$end':([2,7,14,15,24,32,35,41,50,51,61,],[-4,0,-3,-1,-2,-5,-7,-10,-6,-8,-9,]),'LSQUAREBRACKET':([30,52,109,111,],[52,52,52,52,]),'STRING':([18,27,30,36,38,40,42,44,45,48,52,64,67,74,75,76,77,79,80,81,82,83,90,91,94,96,98,102,109,111,112,113,117,120,124,125,127,128,129,130,132,133,135,136,137,138,139,],[-12,39,58,-16,39,-13,-11,39,39,39,58,39,39,39,39,-27,39,39,39,39,39,39,39,39,39,39,-12,39,58,58,-15,-14,39,39,-23,-21,-22,-24,-19,-17,39,-12,39,-12,-18,39,-20,]),'EQUALS':([37,39,43,46,47,49,62,63,65,66,68,70,71,72,73,78,89,93,95,97,99,100,101,103,104,105,106,107,114,115,116,118,119,121,126,134,],[-45,-44,64,-25,-46,78,-47,-33,90,91,94,96,78,78,78,102,78,78,-26,-28,78,78,78,-36,78,-34,-35,-37,78,78,-40,78,78,-29,78,78,]),'TIMES':([37,39,43,46,47,49,62,63,71,72,73,89,93,95,97,99,100,101,103,104,105,106,107,114,115,116,118,119,121,126,134,],[-45,-44,65,-25,-46,79,-47,79,79,79,79,79,79,-26,-28,79,79,79,-36,79,79,79,-37,79,79,-40,79,79,79,79,79,]),'ELSEIF':([129,130,139,],[-19,132,-20,]),'LPAREN':([18,27,36,38,40,42,43,44,45,46,48,62,64,67,74,75,76,77,79,80,81,82,83,90,91,94,95,96,98,102,112,113,117,120,124,125,127,128,129,130,132,133,135,136,137,138,139,],[-12,44,-16,44,-13,-11,67,44,44,-25,44,67,44,44,44,44,-27,44,44,44,44,44,44,44,44,44,-26,44,-12,44,-15,-14,44,44,-23,-21,-22,-24,-19,-17,44,-12,44,-12,-18,44,-20,]),'ELSE':([129,130,139,],[-19,131,-20,]),'IF':([18,27,36,40,42,76,98,112,113,120,124,125,127,128,129,130,133,135,136,137,138,139,],[-12,45,-16,-13,-11,-27,-12,-15,-14,45,-23,-21,-22,-24,-19,-17,-12,45,-12,-18,45,-20,]),'AND':([37,39,43,46,47,49,62,63,71,72,73,89,93,95,97,99,100,101,103,104,105,106,107,114,115,116,118,119,121,126,134,],[-45,-44,-47,-25,-46,74,-47,-33,74,74,-32,74,74,-26,-28,-38,-39,74,-36,74,-34,-35,-37,74,74,-40,74,74,-29,74,74,]),'NAME':([1,3,4,5,8,13,17,18,19,20,25,27,30,31,33,36,38,40,42,44,45,48,52,54,64,67,69,74,75,76,77,79,80,81,82,83,90,91,94,96,98,102,109,111,112,113,117,120,124,125,127,128,129,130,132,133,135,136,137,138,139,],[9,10,11,12,16,21,21,-12,21,21,21,46,53,59,21,-16,46,-13,-11,46,46,46,53,21,46,46,95,46,46,-27,46,46,46,46,46,46,46,46,46,46,-12,46,53,53,-15,-14,46,46,-23,-21,-22,-24,-19,-17,46,-12,46,-12,-18,46,-20,]),'LARGERTHAN':([37,39,43,46,47,49,59,62,63,71,72,73,89,93,95,97,99,100,101,103,104,105,106,107,114,115,116,118,119,121,126,134,],[-45,-44,-47,-25,-46,80,87,-47,-33,80,80,-32,80,80,-26,-28,-38,-39,80,-36,80,-34,-35,-37,80,80,-40,80,80,-29,80,80,]),'BOOL':([18,27,30,36,38,40,42,44,45,48,52,64,67,74,75,76,77,79,80,81,82,83,90,91,94,96,98,102,109,111,112,113,117,120,124,125,127,128,129,130,132,133,135,136,137,138,139,],[-12,47,57,-16,47,-13,-11,47,47,47,57,47,47,47,47,-27,47,47,47,47,47,47,47,47,47,47,-12,47,57,57,-15,-14,47,47,-23,-21,-22,-24,-19,-17,47,-12,47,-12,-18,47,-20,]),'NOT':([18,27,36,38,40,42,44,45,48,64,67,74,75,76,77,79,80,81,82,83,90,91,94,96,98,102,112,113,117,120,124,125,127,128,129,130,132,133,135,136,137,138,139,],[-12,48,-16,48,-13,-11,48,48,48,48,48,48,48,-27,48,48,48,48,48,48,48,48,48,48,-12,48,-15,-14,48,48,-23,-21,-22,-24,-19,-17,48,-12,48,-12,-18,48,-20,]),'OR':([37,39,43,46,47,49,62,63,71,72,73,89,93,95,97,99,100,101,103,104,105,106,107,114,115,116,118,119,121,126,134,],[-45,-44,-47,-25,-46,75,-47,-33,75,75,-32,75,75,-26,-28,-38,-39,75,-36,75,-34,-35,-37,75,75,-40,75,75,-29,75,75,]),}
11
11
 
12
12
_lr_action = { }
13
13
for _k, _v in _lr_action_items.items():
16
16
      _lr_action[_x][_k] = _y
17
17
del _lr_action_items
18
18
 
19
 
_lr_goto_items = {'definition':([0,7,15,],[2,14,24,]),'entry':([13,17,19,20,25,33,53,],[23,23,23,23,23,59,23,]),'script':([18,95,130,133,],[27,117,132,135,]),'items':([51,],[82,]),'elseifs':([126,],[127,]),'item':([30,51,106,108,],[55,83,119,120,]),'arguments':([66,],[90,]),'statement':([27,117,132,135,],[42,42,42,42,]),'entries':([13,17,19,20,25,53,],[22,26,28,29,34,84,]),'var':([27,38,44,47,63,66,72,73,75,77,78,79,80,81,88,89,92,94,99,114,117,129,132,135,],[43,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,43,61,43,43,]),'definitions':([0,],[7,]),'expression':([27,38,44,47,63,66,72,73,75,77,78,79,80,81,88,89,92,94,99,114,117,129,132,135,],[48,62,70,71,87,91,96,97,98,100,101,102,103,104,111,112,115,116,118,123,48,131,48,48,]),}
 
19
_lr_goto_items = {'definition':([0,7,15,],[2,14,24,]),'entry':([13,17,19,20,25,33,54,],[23,23,23,23,23,60,23,]),'script':([18,98,133,136,],[27,120,135,138,]),'items':([52,],[84,]),'elseifs':([129,],[130,]),'item':([30,52,109,111,],[56,85,122,123,]),'arguments':([67,],[92,]),'statement':([27,120,135,138,],[42,42,42,42,]),'entries':([13,17,19,20,25,54,],[22,26,28,29,34,86,]),'var':([27,38,44,45,48,64,67,74,75,77,79,80,81,82,83,90,91,94,96,102,117,120,132,135,138,],[43,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,43,62,43,43,]),'definitions':([0,],[7,]),'expression':([27,38,44,45,48,64,67,74,75,77,79,80,81,82,83,90,91,94,96,102,117,120,132,135,138,],[49,63,71,72,73,89,93,99,100,101,103,104,105,106,107,114,115,118,119,121,126,49,134,49,49,]),}
20
20
 
21
21
_lr_goto = { }
22
22
for _k, _v in _lr_goto_items.items():
26
26
del _lr_goto_items
27
27
_lr_productions = [
28
28
  ("S' -> definitions","S'",1,None,None,None),
29
 
  ('definitions -> definitions DOUBLENEWLINE','definitions',2,'p_definitions_doublenewline','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',170),
30
 
  ('definitions -> definitions DOUBLENEWLINE definition','definitions',3,'p_definitions_definitions_definition','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',174),
31
 
  ('definitions -> definitions definition','definitions',2,'p_definitions_definitions_definition','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',175),
32
 
  ('definitions -> definition','definitions',1,'p_definitions_definition','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',186),
33
 
  ('definition -> GAME LCURLYBRACKET entries RCURLYBRACKET','definition',4,'p_game_definition','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',190),
34
 
  ('definition -> IMAGE NAME LCURLYBRACKET entries RCURLYBRACKET','definition',5,'p_definition_entries','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',194),
35
 
  ('definition -> SOUND NAME LCURLYBRACKET entries RCURLYBRACKET','definition',5,'p_definition_entries','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',195),
36
 
  ('definition -> OBJECT NAME LCURLYBRACKET entries RCURLYBRACKET','definition',5,'p_definition_entries','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',196),
37
 
  ('definition -> ROOM NAME LCURLYBRACKET entries RCURLYBRACKET','definition',5,'p_definition_entries','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',197),
38
 
  ('definition -> SCRIPT NAME LCURLYBRACKET script RCURLYBRACKET','definition',5,'p_definition_script','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',204),
39
 
  ('script -> script statement','script',2,'p_script_script_statement','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',211),
40
 
  ('script -> <empty>','script',0,'p_script_empty','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',215),
41
 
  ('statement -> COMMENT','statement',1,'p_statement_comment','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',219),
42
 
  ('statement -> var EQUALS expression SEMICOLON','statement',4,'p_statement_equals','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',226),
43
 
  ('statement -> var EQUALS UNDEFINED SEMICOLON','statement',4,'p_statement_equals_undefined','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',234),
44
 
  ('statement -> DOUBLENEWLINE','statement',1,'p_statement_double_newline','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',241),
45
 
  ('statement -> IF expression LCURLYBRACKET script RCURLYBRACKET elseifs','statement',6,'p_statement_check','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',247),
46
 
  ('statement -> IF expression LCURLYBRACKET script RCURLYBRACKET elseifs ELSE LCURLYBRACKET script RCURLYBRACKET','statement',10,'p_statement_check','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',248),
47
 
  ('elseifs -> <empty>','elseifs',0,'p_elseifs_empty','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',261),
48
 
  ('elseifs -> elseifs ELSEIF expression LCURLYBRACKET script RCURLYBRACKET','elseifs',6,'p_elseifs_elseifs_expression_script','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',265),
49
 
  ('statement -> var PLUS EQUALS expression SEMICOLON','statement',5,'p_statement_operator_equals','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',273),
50
 
  ('statement -> var MINUS EQUALS expression SEMICOLON','statement',5,'p_statement_operator_equals','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',274),
51
 
  ('statement -> var TIMES EQUALS expression SEMICOLON','statement',5,'p_statement_operator_equals','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',275),
52
 
  ('statement -> var DIVIDE EQUALS expression SEMICOLON','statement',5,'p_statement_operator_equals','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',276),
53
 
  ('var -> NAME','var',1,'p_var','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',291),
54
 
  ('var -> var DOT NAME','var',3,'p_object_var','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',295),
55
 
  ('statement -> expression SEMICOLON','statement',2,'p_statement_expression','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',299),
56
 
  ('expression -> expression EQUALS EQUALS expression','expression',4,'p_expression_comparison_equals','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',306),
57
 
  ('expression -> expression SMALLERTHAN expression','expression',3,'p_expression_comparison_smaller_and_larger_than','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',314),
58
 
  ('expression -> expression LARGERTHAN expression','expression',3,'p_expression_comparison_smaller_and_larger_than','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',315),
59
 
  ('expression -> NOT expression','expression',2,'p_expression_unary_operators','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',326),
60
 
  ('expression -> MINUS expression','expression',2,'p_expression_unary_operators','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',327),
61
 
  ('expression -> expression PLUS expression','expression',3,'p_expression_binary_operators','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',334),
62
 
  ('expression -> expression MINUS expression','expression',3,'p_expression_binary_operators','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',335),
63
 
  ('expression -> expression TIMES expression','expression',3,'p_expression_binary_operators','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',336),
64
 
  ('expression -> expression DIVIDE expression','expression',3,'p_expression_binary_operators','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',337),
65
 
  ('expression -> expression AND expression','expression',3,'p_expression_binary_operators','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',338),
66
 
  ('expression -> expression OR expression','expression',3,'p_expression_binary_operators','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',339),
67
 
  ('expression -> var LPAREN arguments RPAREN','expression',4,'p_expression_call','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',355),
68
 
  ('arguments -> arguments COMMA expression','arguments',3,'p_arguments_arguments_expression','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',363),
69
 
  ('arguments -> expression','arguments',1,'p_arguments_expression','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',367),
70
 
  ('arguments -> <empty>','arguments',0,'p_arguments_empty','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',371),
71
 
  ('expression -> STRING','expression',1,'p_expression_values','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',375),
72
 
  ('expression -> NUMBER','expression',1,'p_expression_values','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',376),
73
 
  ('expression -> BOOL','expression',1,'p_expression_values','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',377),
74
 
  ('expression -> var','expression',1,'p_expression_var','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',384),
75
 
  ('entries -> entry','entries',1,'p_entries_entry','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',391),
76
 
  ('entries -> <empty>','entries',0,'p_entries_empty','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',397),
77
 
  ('entries -> entries COMMA entry','entries',3,'p_entries_entries_entry','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',401),
78
 
  ('entry -> NAME COLON item','entry',3,'p_entry','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',409),
79
 
  ('entry -> NAME SMALLERTHAN NAME LARGERTHAN COLON item','entry',6,'p_entry_event','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',413),
80
 
  ('items -> <empty>','items',0,'p_items_empty','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',417),
81
 
  ('items -> items COMMA item','items',3,'p_items_items_item','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',421),
82
 
  ('items -> item','items',1,'p_items_item','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',425),
83
 
  ('item -> STRING','item',1,'p_item_simple','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',429),
84
 
  ('item -> NUMBER','item',1,'p_item_simple','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',430),
85
 
  ('item -> BOOL','item',1,'p_item_simple','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',431),
86
 
  ('item -> NAME','item',1,'p_item_simple','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',432),
87
 
  ('item -> LSQUAREBRACKET items RSQUAREBRACKET','item',3,'p_item_advanced','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',436),
88
 
  ('item -> LCURLYBRACKET entries RCURLYBRACKET','item',3,'p_item_advanced','/home/marten/Programming/Projects/opengamedesigner/opengamedesigner/lpsparser.py',437),
 
29
  ('definitions -> definitions DOUBLENEWLINE','definitions',2,'p_definitions_doublenewline','lpsparser.py',170),
 
30
  ('definitions -> definitions DOUBLENEWLINE definition','definitions',3,'p_definitions_definitions_definition','lpsparser.py',174),
 
31
  ('definitions -> definitions definition','definitions',2,'p_definitions_definitions_definition','lpsparser.py',175),
 
32
  ('definitions -> definition','definitions',1,'p_definitions_definition','lpsparser.py',186),
 
33
  ('definition -> GAME LCURLYBRACKET entries RCURLYBRACKET','definition',4,'p_game_definition','lpsparser.py',190),
 
34
  ('definition -> IMAGE NAME LCURLYBRACKET entries RCURLYBRACKET','definition',5,'p_definition_entries','lpsparser.py',194),
 
35
  ('definition -> SOUND NAME LCURLYBRACKET entries RCURLYBRACKET','definition',5,'p_definition_entries','lpsparser.py',195),
 
36
  ('definition -> OBJECT NAME LCURLYBRACKET entries RCURLYBRACKET','definition',5,'p_definition_entries','lpsparser.py',196),
 
37
  ('definition -> ROOM NAME LCURLYBRACKET entries RCURLYBRACKET','definition',5,'p_definition_entries','lpsparser.py',197),
 
38
  ('definition -> SCRIPT NAME LCURLYBRACKET script RCURLYBRACKET','definition',5,'p_definition_script','lpsparser.py',204),
 
39
  ('script -> script statement','script',2,'p_script_script_statement','lpsparser.py',211),
 
40
  ('script -> <empty>','script',0,'p_script_empty','lpsparser.py',215),
 
41
  ('statement -> COMMENT','statement',1,'p_statement_comment','lpsparser.py',219),
 
42
  ('statement -> var EQUALS expression SEMICOLON','statement',4,'p_statement_equals','lpsparser.py',226),
 
43
  ('statement -> var EQUALS UNDEFINED SEMICOLON','statement',4,'p_statement_equals_undefined','lpsparser.py',234),
 
44
  ('statement -> DOUBLENEWLINE','statement',1,'p_statement_double_newline','lpsparser.py',241),
 
45
  ('statement -> IF expression LCURLYBRACKET script RCURLYBRACKET elseifs','statement',6,'p_statement_check','lpsparser.py',247),
 
46
  ('statement -> IF expression LCURLYBRACKET script RCURLYBRACKET elseifs ELSE LCURLYBRACKET script RCURLYBRACKET','statement',10,'p_statement_check','lpsparser.py',248),
 
47
  ('elseifs -> <empty>','elseifs',0,'p_elseifs_empty','lpsparser.py',261),
 
48
  ('elseifs -> elseifs ELSEIF expression LCURLYBRACKET script RCURLYBRACKET','elseifs',6,'p_elseifs_elseifs_expression_script','lpsparser.py',265),
 
49
  ('statement -> var PLUS EQUALS expression SEMICOLON','statement',5,'p_statement_operator_equals','lpsparser.py',273),
 
50
  ('statement -> var MINUS EQUALS expression SEMICOLON','statement',5,'p_statement_operator_equals','lpsparser.py',274),
 
51
  ('statement -> var TIMES EQUALS expression SEMICOLON','statement',5,'p_statement_operator_equals','lpsparser.py',275),
 
52
  ('statement -> var DIVIDE EQUALS expression SEMICOLON','statement',5,'p_statement_operator_equals','lpsparser.py',276),
 
53
  ('var -> NAME','var',1,'p_var','lpsparser.py',291),
 
54
  ('var -> var DOT NAME','var',3,'p_object_var','lpsparser.py',295),
 
55
  ('statement -> expression SEMICOLON','statement',2,'p_statement_expression','lpsparser.py',299),
 
56
  ('expression -> LPAREN expression RPAREN','expression',3,'p_expression_priority','lpsparser.py',306),
 
57
  ('expression -> expression EQUALS EQUALS expression','expression',4,'p_expression_comparison_equals','lpsparser.py',313),
 
58
  ('expression -> expression SMALLERTHAN expression','expression',3,'p_expression_comparison_smaller_and_larger_than','lpsparser.py',321),
 
59
  ('expression -> expression LARGERTHAN expression','expression',3,'p_expression_comparison_smaller_and_larger_than','lpsparser.py',322),
 
60
  ('expression -> NOT expression','expression',2,'p_expression_unary_operators','lpsparser.py',333),
 
61
  ('expression -> MINUS expression','expression',2,'p_expression_unary_operators','lpsparser.py',334),
 
62
  ('expression -> expression PLUS expression','expression',3,'p_expression_binary_operators','lpsparser.py',341),
 
63
  ('expression -> expression MINUS expression','expression',3,'p_expression_binary_operators','lpsparser.py',342),
 
64
  ('expression -> expression TIMES expression','expression',3,'p_expression_binary_operators','lpsparser.py',343),
 
65
  ('expression -> expression DIVIDE expression','expression',3,'p_expression_binary_operators','lpsparser.py',344),
 
66
  ('expression -> expression AND expression','expression',3,'p_expression_binary_operators','lpsparser.py',345),
 
67
  ('expression -> expression OR expression','expression',3,'p_expression_binary_operators','lpsparser.py',346),
 
68
  ('expression -> var LPAREN arguments RPAREN','expression',4,'p_expression_call','lpsparser.py',362),
 
69
  ('arguments -> arguments COMMA expression','arguments',3,'p_arguments_arguments_expression','lpsparser.py',370),
 
70
  ('arguments -> expression','arguments',1,'p_arguments_expression','lpsparser.py',374),
 
71
  ('arguments -> <empty>','arguments',0,'p_arguments_empty','lpsparser.py',378),
 
72
  ('expression -> STRING','expression',1,'p_expression_values','lpsparser.py',382),
 
73
  ('expression -> NUMBER','expression',1,'p_expression_values','lpsparser.py',383),
 
74
  ('expression -> BOOL','expression',1,'p_expression_values','lpsparser.py',384),
 
75
  ('expression -> var','expression',1,'p_expression_var','lpsparser.py',391),
 
76
  ('entries -> entry','entries',1,'p_entries_entry','lpsparser.py',398),
 
77
  ('entries -> <empty>','entries',0,'p_entries_empty','lpsparser.py',404),
 
78
  ('entries -> entries COMMA entry','entries',3,'p_entries_entries_entry','lpsparser.py',408),
 
79
  ('entry -> NAME COLON item','entry',3,'p_entry','lpsparser.py',416),
 
80
  ('entry -> NAME SMALLERTHAN NAME LARGERTHAN COLON item','entry',6,'p_entry_event','lpsparser.py',420),
 
81
  ('items -> <empty>','items',0,'p_items_empty','lpsparser.py',424),
 
82
  ('items -> items COMMA item','items',3,'p_items_items_item','lpsparser.py',428),
 
83
  ('items -> item','items',1,'p_items_item','lpsparser.py',432),
 
84
  ('item -> STRING','item',1,'p_item_simple','lpsparser.py',436),
 
85
  ('item -> NUMBER','item',1,'p_item_simple','lpsparser.py',437),
 
86
  ('item -> BOOL','item',1,'p_item_simple','lpsparser.py',438),
 
87
  ('item -> NAME','item',1,'p_item_simple','lpsparser.py',439),
 
88
  ('item -> LSQUAREBRACKET items RSQUAREBRACKET','item',3,'p_item_advanced','lpsparser.py',443),
 
89
  ('item -> LCURLYBRACKET entries RCURLYBRACKET','item',3,'p_item_advanced','lpsparser.py',444),
89
90
]