source: coopr.pyomo/trunk/coopr/pyomo/data/parse_table_datacmds.py @ 2330

Last change on this file since 2330 was 2330, checked in by wehart, 11 years ago

Setting directory properties to ignore *.pyc files.

Reworking parser management for data command files, to
directly manage the generation of the parsetab.py file.
This file is not called parse_table_datacmds.py, and it is
committed to the coopr.pyomo repository.

File size: 16.1 KB
Line 
1
2# /home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_table_datacmds.py
3# This file is automatically generated. Do not edit.
4_tabversion = '3.2'
5
6_lr_method = 'LALR'
7
8_lr_signature = 'h+\xf2;\x04#f_?\x128E\xf8\xd7[\xe4'
9   
10_lr_action_items = {'QUOTEDSTRING':([4,5,7,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,39,40,41,42,61,64,67,75,78,81,],[19,30,36,-65,-55,-53,-56,-54,-62,-57,-60,19,-59,-63,-58,-61,-66,-64,19,19,19,19,-50,-49,86,19,-48,-47,]),'LBRACKET':([4,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,39,40,41,42,49,61,64,68,75,78,81,90,104,],[20,-65,-55,-53,-56,-54,-62,-57,-60,20,-59,-63,-58,-61,-66,-64,20,20,20,20,71,-50,-49,71,20,-48,-47,71,71,]),'COLONEQ':([10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,43,56,61,64,78,81,],[39,41,-65,-55,-53,-56,-54,42,-62,-57,-60,-52,-59,-63,-58,-61,-66,-64,-51,75,-50,-49,-48,-47,]),'DATA':([0,6,37,38,50,51,52,54,58,74,76,77,96,111,],[8,8,-15,-16,-12,-13,-14,-6,-10,-5,-9,-11,-8,-7,]),'SET':([0,6,37,38,50,51,52,54,58,67,74,76,77,96,111,],[1,1,-15,-16,-12,-13,-14,-6,-10,82,-5,-9,-11,-8,-7,]),'RPAREN':([4,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,39,40,41,42,44,45,61,62,64,65,75,78,79,80,81,97,98,],[27,-65,-55,-53,-56,-54,-62,-57,-60,27,-59,-63,-58,-61,-66,-64,27,27,27,27,61,64,-50,78,-49,81,27,-48,-45,-46,-47,-43,-44,]),'SEMICOLON':([8,9,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,35,36,39,41,43,48,53,55,57,59,60,61,64,66,69,70,72,75,78,81,82,83,84,85,86,87,89,92,93,94,95,99,100,101,102,103,105,106,113,115,],[37,38,-65,-55,-53,-56,-54,-62,-57,-60,-52,-59,-63,-58,-61,-66,-64,-67,-20,-69,50,-70,-68,51,52,54,58,-51,-19,74,-17,76,-18,77,-50,-49,-71,-39,-26,-38,96,-48,-47,-36,-32,-28,-34,-30,-39,-25,-39,-37,-24,111,-35,-31,-27,-33,-29,-23,-40,-22,-21,]),'TR':([4,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,39,40,41,42,61,64,75,78,81,],[18,-65,-55,-53,-56,-54,-62,-57,-60,18,-59,-63,-58,-61,-66,-64,18,18,18,18,-50,-49,18,-48,-47,]),'FILENAME':([5,46,],[32,66,]),'COLON':([4,10,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,32,33,39,40,41,42,48,61,64,66,75,78,81,82,83,84,85,86,99,100,101,102,103,],[22,40,-65,-55,-53,-56,-54,-62,-57,-60,22,-59,-63,-58,-61,-66,-64,46,49,-69,-70,-68,22,22,22,22,68,-50,-49,-71,22,-48,-47,-36,-32,-28,-34,-30,-35,-31,-27,-33,-29,]),'COMMA':([4,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,39,40,41,42,44,45,61,64,75,78,79,80,81,91,],[24,-65,-55,-53,-56,-54,-62,-57,-60,24,-59,-63,-58,-61,-66,-64,24,24,24,24,63,63,-50,-49,24,-48,63,63,-47,63,]),'$end':([0,2,3,6,34,37,38,50,51,52,54,58,74,76,77,96,111,],[-2,-1,0,-4,-3,-15,-16,-12,-13,-14,-6,-10,-5,-9,-11,-8,-7,]),'NONWORD':([4,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,39,40,41,42,61,64,75,78,81,],[13,-65,-55,-53,-56,-54,-62,-57,-60,13,-59,-63,-58,-61,-66,-64,13,13,13,13,-50,-49,13,-48,-47,]),'END':([0,6,37,38,50,51,52,54,58,74,76,77,96,111,],[9,9,-15,-16,-12,-13,-14,-6,-10,-5,-9,-11,-8,-7,]),'STRING':([4,5,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,39,40,41,42,61,64,67,75,78,81,],[15,33,-65,-55,-53,-56,-54,-62,-57,-60,15,-59,-63,-58,-61,-66,-64,15,15,15,15,-50,-49,84,15,-48,-47,]),'ASTERISK':([4,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,39,40,41,42,61,63,64,75,78,81,],[12,-65,-55,-53,-56,-54,-62,-57,-60,12,-59,44,-58,-61,-66,-64,12,12,12,12,-50,80,-49,12,-48,-47,]),'PARAM':([0,6,37,38,50,51,52,54,58,67,74,76,77,96,111,],[4,4,-15,-16,-12,-13,-14,-6,-10,85,-5,-9,-11,-8,-7,]),'LPAREN':([4,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,39,40,41,42,61,64,75,78,81,],[23,-65,-55,-53,-56,-54,-62,-57,-60,23,-59,-63,-58,-61,-66,-64,23,23,23,23,-50,-49,23,-48,-47,]),'IMPORT':([0,6,37,38,50,51,52,54,58,74,76,77,96,111,],[5,5,-15,-16,-12,-13,-14,-6,-10,-5,-9,-11,-8,-7,]),'WORD':([1,4,5,7,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,32,33,39,40,41,42,49,61,63,64,66,67,68,69,71,72,73,75,78,81,82,83,84,85,86,87,88,90,92,104,106,107,109,110,112,114,],[10,14,28,35,-65,-55,-53,-56,-54,-62,-57,-60,14,-59,45,-58,-61,-66,-64,-67,47,-69,-70,-68,14,14,14,14,69,-50,79,-49,-71,83,87,-39,91,92,92,14,-48,-47,47,47,47,47,47,-39,92,106,-39,106,-40,92,-42,106,92,-41,]),'INCLUDE':([0,6,37,38,50,51,52,54,58,74,76,77,96,111,],[7,7,-15,-16,-12,-13,-14,-6,-10,-5,-9,-11,-8,-7,]),'EQ':([47,69,87,92,],[67,90,104,110,]),'WORDWITHINDEX':([1,4,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,39,40,41,42,61,64,75,78,81,],[11,16,-65,-55,-53,-56,-54,-62,-57,-60,16,-59,-63,-58,-61,-66,-64,16,16,16,16,-50,-49,16,-48,-47,]),'RBRACKET':([4,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,39,40,41,42,61,64,75,78,79,80,81,91,97,98,108,],[25,-65,-55,-53,-56,-54,-62,-57,-60,25,-59,-63,-58,-61,-66,-64,25,25,25,25,-50,-49,25,-48,-45,-46,-47,109,-43,-44,114,]),}
11
12_lr_action = { }
13for _k, _v in _lr_action_items.items():
14   for _x,_y in zip(_v[0],_v[1]):
15      if not _x in _lr_action:  _lr_action[_x] = { }
16      _lr_action[_x][_k] = _y
17del _lr_action_items
18
19_lr_goto_items = {'setdecl':([39,41,75,],[53,57,95,]),'statements':([0,6,],[2,34,]),'statement':([0,6,],[6,6,]),'import_options':([29,82,83,84,85,86,],[48,99,100,101,102,103,]),'expr':([0,],[3,]),'index_list':([44,45,79,80,91,],[62,65,97,98,108,]),'filename':([5,],[29,]),'item':([4,21,39,40,41,42,75,],[21,21,21,21,21,21,21,]),'paramdecl':([42,],[60,]),'variable':([49,68,72,73,88,107,112,],[72,72,72,72,72,72,72,]),'template':([4,21,39,40,41,42,75,],[26,26,26,26,26,26,26,]),'items':([4,21,39,40,41,42,75,],[17,43,55,56,55,59,55,]),'indices':([49,68,90,104,],[73,88,107,112,]),'variable_options':([49,68,72,73,88,107,112,],[70,89,93,94,105,113,115,]),'importdecl':([5,],[31,]),}
20
21_lr_goto = { }
22for _k, _v in _lr_goto_items.items():
23   for _x,_y in zip(_v[0],_v[1]):
24       if not _x in _lr_goto: _lr_goto[_x] = { }
25       _lr_goto[_x][_k] = _y
26del _lr_goto_items
27_lr_productions = [
28  ("S' -> expr","S'",1,None,None,None),
29  ('expr -> statements','expr',1,'p_expr','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',132),
30  ('expr -> <empty>','expr',0,'p_expr','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',133),
31  ('statements -> statement statements','statements',2,'p_statements','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',136),
32  ('statements -> statement','statements',1,'p_statements','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',137),
33  ('statement -> SET WORD COLONEQ setdecl SEMICOLON','statement',5,'p_statement','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',140),
34  ('statement -> SET WORD COLONEQ SEMICOLON','statement',4,'p_statement','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',141),
35  ('statement -> SET WORD COLON items COLONEQ setdecl SEMICOLON','statement',7,'p_statement','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',142),
36  ('statement -> SET WORD COLON items COLONEQ SEMICOLON','statement',6,'p_statement','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',143),
37  ('statement -> SET WORDWITHINDEX COLONEQ setdecl SEMICOLON','statement',5,'p_statement','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',144),
38  ('statement -> SET WORDWITHINDEX COLONEQ SEMICOLON','statement',4,'p_statement','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',145),
39  ('statement -> PARAM items COLONEQ paramdecl SEMICOLON','statement',5,'p_statement','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',146),
40  ('statement -> IMPORT importdecl SEMICOLON','statement',3,'p_statement','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',147),
41  ('statement -> INCLUDE WORD SEMICOLON','statement',3,'p_statement','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',148),
42  ('statement -> INCLUDE QUOTEDSTRING SEMICOLON','statement',3,'p_statement','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',149),
43  ('statement -> DATA SEMICOLON','statement',2,'p_statement','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',150),
44  ('statement -> END SEMICOLON','statement',2,'p_statement','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',151),
45  ('setdecl -> items','setdecl',1,'p_setdecl','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',164),
46  ('paramdecl -> items','paramdecl',1,'p_paramdecl','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',168),
47  ('importdecl -> filename import_options','importdecl',2,'p_importdecl','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',172),
48  ('importdecl -> filename','importdecl',1,'p_importdecl','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',173),
49  ('importdecl -> filename import_options COLON WORD EQ indices variable_options','importdecl',7,'p_importdecl','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',174),
50  ('importdecl -> filename COLON WORD EQ indices variable_options','importdecl',6,'p_importdecl','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',175),
51  ('importdecl -> filename import_options COLON indices variable_options','importdecl',5,'p_importdecl','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',176),
52  ('importdecl -> filename COLON indices variable_options','importdecl',4,'p_importdecl','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',177),
53  ('importdecl -> filename import_options COLON variable_options','importdecl',4,'p_importdecl','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',178),
54  ('importdecl -> filename COLON variable_options','importdecl',3,'p_importdecl','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',179),
55  ('import_options -> WORD EQ STRING import_options','import_options',4,'p_import_options','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',207),
56  ('import_options -> WORD EQ STRING','import_options',3,'p_import_options','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',208),
57  ('import_options -> WORD EQ QUOTEDSTRING import_options','import_options',4,'p_import_options','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',209),
58  ('import_options -> WORD EQ QUOTEDSTRING','import_options',3,'p_import_options','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',210),
59  ('import_options -> WORD EQ WORD import_options','import_options',4,'p_import_options','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',211),
60  ('import_options -> WORD EQ WORD','import_options',3,'p_import_options','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',212),
61  ('import_options -> WORD EQ PARAM import_options','import_options',4,'p_import_options','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',213),
62  ('import_options -> WORD EQ PARAM','import_options',3,'p_import_options','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',214),
63  ('import_options -> WORD EQ SET import_options','import_options',4,'p_import_options','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',215),
64  ('import_options -> WORD EQ SET','import_options',3,'p_import_options','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',216),
65  ('variable_options -> variable variable_options','variable_options',2,'p_variable_options','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',226),
66  ('variable_options -> variable','variable_options',1,'p_variable_options','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',227),
67  ('variable -> WORD','variable',1,'p_variable','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',236),
68  ('variable -> WORD EQ WORD','variable',3,'p_variable','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',237),
69  ('indices -> LBRACKET WORD index_list RBRACKET','indices',4,'p_indices','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',245),
70  ('indices -> LBRACKET WORD RBRACKET','indices',3,'p_indices','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',246),
71  ('index_list -> COMMA WORD index_list','index_list',3,'p_index_list','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',254),
72  ('index_list -> COMMA ASTERISK index_list','index_list',3,'p_index_list','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',255),
73  ('index_list -> COMMA WORD','index_list',2,'p_index_list','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',256),
74  ('index_list -> COMMA ASTERISK','index_list',2,'p_index_list','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',257),
75  ('template -> LPAREN WORD index_list RPAREN','template',4,'p_template','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',265),
76  ('template -> LPAREN ASTERISK index_list RPAREN','template',4,'p_template','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',266),
77  ('template -> LPAREN WORD RPAREN','template',3,'p_template','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',267),
78  ('template -> LPAREN ASTERISK RPAREN','template',3,'p_template','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',268),
79  ('items -> item items','items',2,'p_items','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',276),
80  ('items -> item','items',1,'p_items','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',277),
81  ('item -> WORD','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',284),
82  ('item -> WORDWITHINDEX','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',285),
83  ('item -> NONWORD','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',286),
84  ('item -> STRING','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',287),
85  ('item -> QUOTEDSTRING','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',288),
86  ('item -> COMMA','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',289),
87  ('item -> COLON','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',290),
88  ('item -> LBRACKET','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',291),
89  ('item -> RBRACKET','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',292),
90  ('item -> TR','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',293),
91  ('item -> LPAREN','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',294),
92  ('item -> RPAREN','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',295),
93  ('item -> ASTERISK','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',296),
94  ('item -> template','item',1,'p_item','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',297),
95  ('filename -> WORD','filename',1,'p_filename','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',302),
96  ('filename -> STRING','filename',1,'p_filename','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',303),
97  ('filename -> QUOTEDSTRING','filename',1,'p_filename','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',304),
98  ('filename -> FILENAME','filename',1,'p_filename','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',305),
99  ('filename -> WORD COLON FILENAME','filename',3,'p_filename','/home/wehart/src/coopr/dev/src/coopr.pyomo/coopr/pyomo/data/parse_datacmds.py',306),
100]
Note: See TracBrowser for help on using the repository browser.