Skip to content

Commit 7bec0c0

Browse files
committed
Update tables after merge
1 parent 9ee8d3c commit 7bec0c0

2 files changed

Lines changed: 63 additions & 60 deletions

File tree

‎astropy/units/format/generic_lextab.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# generic_lextab.py. This file automatically created by PLY (version 3.4). Don't edit!
2-
_tabversion = '3.4'
3-
_lextokens = {'CARET': 1, 'SOLIDUS': 1, 'STAR': 1, 'DOUBLE_STAR': 1, 'PERIOD': 1, 'FUNCNAME': 1, 'OPEN_PAREN': 1, 'UINT': 1, 'UNIT': 1, 'SIGN': 1, 'CLOSE_PAREN': 1, 'UFLOAT': 1}
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2+
from __future__ import (absolute_import, division, print_function, unicode_literals)
3+
4+
_tabversion = '3.5'
5+
_lextokens = set(['CARET', 'SOLIDUS', 'STAR', 'DOUBLE_STAR', 'PERIOD', 'FUNCNAME', 'OPEN_PAREN', 'UINT', 'UNIT', 'SIGN', 'CLOSE_PAREN', 'UFLOAT'])
46
_lexreflags = 32
57
_lexliterals = ''
68
_lexstateinfo = {'INITIAL': 'inclusive'}
Lines changed: 58 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
22
from __future__ import (absolute_import, division, print_function, unicode_literals)
33

4+
45
# This file is automatically generated. Do not edit.
56
_tabversion = '3.5'
67

78
_lr_method = 'LALR'
89

9-
_lr_signature = "\xa6=LV\x1e.\xd1\xa0E\xdb'\x956\xca\xfd\xda"
10-
10+
_lr_signature = 'A63D4C561E2ED1A045DB279536CAFDDA'
11+
1112
_lr_action_items = {'CARET':([8,19,42,47,],[26,26,26,26,]),'SOLIDUS':([0,3,4,5,6,8,9,10,14,16,17,19,20,22,23,31,32,33,34,35,36,39,40,45,48,49,50,51,56,57,59,63,65,67,68,71,72,73,74,75,76,78,79,81,],[1,-14,-33,-12,1,-37,1,-31,-32,-17,-15,-20,-16,-53,-52,-36,1,-46,-47,-12,1,-30,1,-21,-11,-34,-35,-38,-12,1,-29,-18,-26,-22,-27,-23,1,-39,-55,-19,-51,-28,-24,-25,]),'STAR':([3,4,8,9,10,14,16,17,19,20,22,23,31,45,49,50,51,63,65,67,68,71,73,74,75,76,78,79,81,],[-14,-33,-37,33,33,-32,-17,-15,-20,-16,-53,-52,-36,-21,-34,-35,-38,-18,-26,-22,-27,-23,-39,-55,-19,-51,-28,-24,-25,]),'DOUBLE_STAR':([8,19,42,47,],[28,28,28,28,]),'PERIOD':([3,4,8,9,10,14,16,17,19,20,22,23,31,45,49,50,51,63,65,67,68,71,73,74,75,76,78,79,81,],[-14,-33,-37,34,34,-32,-17,-15,-20,-16,-53,-52,-36,-21,-34,-35,-38,-18,-26,-22,-27,-23,-39,-55,-19,-51,-28,-24,-25,]),'FUNCNAME':([0,1,3,4,7,8,9,10,14,15,16,17,19,20,22,23,24,31,32,33,34,38,40,45,49,50,51,63,65,67,68,71,73,74,75,76,78,79,81,],[21,-48,-14,-33,21,-37,21,21,-32,21,-17,-15,-20,-16,-53,-52,21,-36,21,-46,-47,21,21,-21,-34,-35,-38,-18,-26,-22,-27,-23,-39,-55,-19,-51,-28,-24,-25,]),'OPEN_PAREN':([0,1,3,4,7,8,9,10,13,14,15,16,17,19,20,21,22,23,24,26,27,28,31,32,33,34,38,40,43,45,49,50,51,61,63,65,67,68,70,71,73,74,75,76,78,79,81,],[7,-48,-14,-33,7,30,7,7,40,-32,7,-17,-15,46,-16,-54,-53,-52,7,-50,30,-49,-36,7,-46,-47,7,7,66,-21,-34,-35,-38,30,-18,-26,-22,-27,30,-23,-39,-55,-19,-51,-28,-24,-25,]),'UINT':([0,1,2,8,16,18,19,22,23,26,27,28,29,30,40,43,44,54,61,62,64,66,70,80,82,],[19,-48,23,-45,42,-44,47,-53,-52,-50,-45,-49,51,-45,19,-45,68,72,-45,76,76,-45,-45,-45,83,]),'CLOSE_PAREN':([3,4,5,6,8,9,10,12,14,16,17,19,20,22,23,25,31,35,36,37,39,41,45,48,49,50,51,52,53,55,56,57,58,59,60,63,65,67,68,69,71,72,73,74,75,76,77,78,79,81,83,],[-14,-33,-1,-4,-37,-10,-31,-7,-32,-17,-15,-20,-16,-53,-52,49,-36,-2,-5,-8,-30,-13,-21,-11,-34,-35,-38,-42,-41,73,-3,-6,-9,-29,74,-18,-26,-22,-27,78,-23,-40,-39,-55,-19,-51,81,-28,-24,-25,-43,]),'SIGN':([0,1,8,19,26,27,28,30,40,42,43,46,47,61,66,70,80,],[18,-48,18,44,-50,18,-49,18,18,62,64,62,62,18,64,18,18,]),'$end':([3,4,5,6,8,9,10,11,12,14,16,17,19,20,22,23,31,35,36,37,39,41,45,48,49,50,51,56,57,58,59,63,65,67,68,71,73,74,75,76,78,79,81,],[-14,-33,-1,-4,-37,-10,-31,0,-7,-32,-17,-15,-20,-16,-53,-52,-36,-2,-5,-8,-30,-13,-21,-11,-34,-35,-38,-3,-6,-9,-29,-18,-26,-22,-27,-23,-39,-55,-19,-51,-28,-24,-25,]),'UNIT':([0,1,3,4,7,8,9,10,14,15,16,17,19,20,22,23,24,31,32,33,34,38,40,45,49,50,51,63,65,67,68,71,73,74,75,76,78,79,81,],[8,-48,-14,-33,8,-37,8,8,-32,8,-17,-15,-20,-16,-53,-52,8,-36,8,-46,-47,8,8,-21,-34,-35,-38,-18,-26,-22,-27,-23,-39,-55,-19,-51,-28,-24,-25,]),'UFLOAT':([0,2,18,30,40,54,64,66,],[-45,22,-44,-45,-45,22,-44,-45,]),}
1213

1314
_lr_action = {}
@@ -27,59 +28,59 @@
2728
del _lr_goto_items
2829
_lr_productions = [
2930
("S' -> main","S'",1,None,None,None),
30-
('main -> product_of_units','main',1,'p_main','astropy/units/format/generic.py',159),
31-
('main -> factor product_of_units','main',2,'p_main','astropy/units/format/generic.py',160),
32-
('main -> factor product product_of_units','main',3,'p_main','astropy/units/format/generic.py',161),
33-
('main -> division_product_of_units','main',1,'p_main','astropy/units/format/generic.py',162),
34-
('main -> factor division_product_of_units','main',2,'p_main','astropy/units/format/generic.py',163),
35-
('main -> factor product division_product_of_units','main',3,'p_main','astropy/units/format/generic.py',164),
36-
('main -> inverse_unit','main',1,'p_main','astropy/units/format/generic.py',165),
37-
('main -> factor inverse_unit','main',2,'p_main','astropy/units/format/generic.py',166),
38-
('main -> factor product inverse_unit','main',3,'p_main','astropy/units/format/generic.py',167),
39-
('main -> factor','main',1,'p_main','astropy/units/format/generic.py',168),
40-
('division_product_of_units -> division_product_of_units division product_of_units','division_product_of_units',3,'p_division_product_of_units','astropy/units/format/generic.py',180),
41-
('division_product_of_units -> product_of_units','division_product_of_units',1,'p_division_product_of_units','astropy/units/format/generic.py',181),
42-
('inverse_unit -> division unit_expression','inverse_unit',2,'p_inverse_unit','astropy/units/format/generic.py',191),
43-
('factor -> factor_fits','factor',1,'p_factor','astropy/units/format/generic.py',197),
44-
('factor -> factor_float','factor',1,'p_factor','astropy/units/format/generic.py',198),
45-
('factor -> factor_int','factor',1,'p_factor','astropy/units/format/generic.py',199),
46-
('factor_float -> signed_float','factor_float',1,'p_factor_float','astropy/units/format/generic.py',205),
47-
('factor_float -> signed_float UINT signed_int','factor_float',3,'p_factor_float','astropy/units/format/generic.py',206),
48-
('factor_float -> signed_float UINT power numeric_power','factor_float',4,'p_factor_float','astropy/units/format/generic.py',207),
49-
('factor_int -> UINT','factor_int',1,'p_factor_int','astropy/units/format/generic.py',220),
50-
('factor_int -> UINT signed_int','factor_int',2,'p_factor_int','astropy/units/format/generic.py',221),
51-
('factor_int -> UINT power numeric_power','factor_int',3,'p_factor_int','astropy/units/format/generic.py',222),
52-
('factor_int -> UINT UINT signed_int','factor_int',3,'p_factor_int','astropy/units/format/generic.py',223),
53-
('factor_int -> UINT UINT power numeric_power','factor_int',4,'p_factor_int','astropy/units/format/generic.py',224),
54-
('factor_fits -> UINT power OPEN_PAREN signed_int CLOSE_PAREN','factor_fits',5,'p_factor_fits','astropy/units/format/generic.py',242),
55-
('factor_fits -> UINT power signed_int','factor_fits',3,'p_factor_fits','astropy/units/format/generic.py',243),
56-
('factor_fits -> UINT SIGN UINT','factor_fits',3,'p_factor_fits','astropy/units/format/generic.py',244),
57-
('factor_fits -> UINT OPEN_PAREN signed_int CLOSE_PAREN','factor_fits',4,'p_factor_fits','astropy/units/format/generic.py',245),
58-
('product_of_units -> unit_expression product product_of_units','product_of_units',3,'p_product_of_units','astropy/units/format/generic.py',264),
59-
('product_of_units -> unit_expression product_of_units','product_of_units',2,'p_product_of_units','astropy/units/format/generic.py',265),
60-
('product_of_units -> unit_expression','product_of_units',1,'p_product_of_units','astropy/units/format/generic.py',266),
61-
('unit_expression -> function','unit_expression',1,'p_unit_expression','astropy/units/format/generic.py',277),
62-
('unit_expression -> unit_with_power','unit_expression',1,'p_unit_expression','astropy/units/format/generic.py',278),
63-
('unit_expression -> OPEN_PAREN product_of_units CLOSE_PAREN','unit_expression',3,'p_unit_expression','astropy/units/format/generic.py',279),
64-
('unit_with_power -> UNIT power numeric_power','unit_with_power',3,'p_unit_with_power','astropy/units/format/generic.py',288),
65-
('unit_with_power -> UNIT numeric_power','unit_with_power',2,'p_unit_with_power','astropy/units/format/generic.py',289),
66-
('unit_with_power -> UNIT','unit_with_power',1,'p_unit_with_power','astropy/units/format/generic.py',290),
67-
('numeric_power -> sign UINT','numeric_power',2,'p_numeric_power','astropy/units/format/generic.py',301),
68-
('numeric_power -> OPEN_PAREN paren_expr CLOSE_PAREN','numeric_power',3,'p_numeric_power','astropy/units/format/generic.py',302),
69-
('paren_expr -> sign UINT','paren_expr',2,'p_paren_expr','astropy/units/format/generic.py',311),
70-
('paren_expr -> signed_float','paren_expr',1,'p_paren_expr','astropy/units/format/generic.py',312),
71-
('paren_expr -> frac','paren_expr',1,'p_paren_expr','astropy/units/format/generic.py',313),
72-
('frac -> sign UINT division sign UINT','frac',5,'p_frac','astropy/units/format/generic.py',322),
73-
('sign -> SIGN','sign',1,'p_sign','astropy/units/format/generic.py',328),
74-
('sign -> <empty>','sign',0,'p_sign','astropy/units/format/generic.py',329),
75-
('product -> STAR','product',1,'p_product','astropy/units/format/generic.py',338),
76-
('product -> PERIOD','product',1,'p_product','astropy/units/format/generic.py',339),
77-
('division -> SOLIDUS','division',1,'p_division','astropy/units/format/generic.py',345),
78-
('power -> DOUBLE_STAR','power',1,'p_power','astropy/units/format/generic.py',351),
79-
('power -> CARET','power',1,'p_power','astropy/units/format/generic.py',352),
80-
('signed_int -> SIGN UINT','signed_int',2,'p_signed_int','astropy/units/format/generic.py',358),
81-
('signed_float -> sign UINT','signed_float',2,'p_signed_float','astropy/units/format/generic.py',364),
82-
('signed_float -> sign UFLOAT','signed_float',2,'p_signed_float','astropy/units/format/generic.py',365),
83-
('function_name -> FUNCNAME','function_name',1,'p_function_name','astropy/units/format/generic.py',371),
84-
('function -> function_name OPEN_PAREN main CLOSE_PAREN','function',4,'p_function','astropy/units/format/generic.py',377),
31+
('main -> product_of_units','main',1,'p_main','generic.py',153),
32+
('main -> factor product_of_units','main',2,'p_main','generic.py',154),
33+
('main -> factor product product_of_units','main',3,'p_main','generic.py',155),
34+
('main -> division_product_of_units','main',1,'p_main','generic.py',156),
35+
('main -> factor division_product_of_units','main',2,'p_main','generic.py',157),
36+
('main -> factor product division_product_of_units','main',3,'p_main','generic.py',158),
37+
('main -> inverse_unit','main',1,'p_main','generic.py',159),
38+
('main -> factor inverse_unit','main',2,'p_main','generic.py',160),
39+
('main -> factor product inverse_unit','main',3,'p_main','generic.py',161),
40+
('main -> factor','main',1,'p_main','generic.py',162),
41+
('division_product_of_units -> division_product_of_units division product_of_units','division_product_of_units',3,'p_division_product_of_units','generic.py',174),
42+
('division_product_of_units -> product_of_units','division_product_of_units',1,'p_division_product_of_units','generic.py',175),
43+
('inverse_unit -> division unit_expression','inverse_unit',2,'p_inverse_unit','generic.py',185),
44+
('factor -> factor_fits','factor',1,'p_factor','generic.py',191),
45+
('factor -> factor_float','factor',1,'p_factor','generic.py',192),
46+
('factor -> factor_int','factor',1,'p_factor','generic.py',193),
47+
('factor_float -> signed_float','factor_float',1,'p_factor_float','generic.py',199),
48+
('factor_float -> signed_float UINT signed_int','factor_float',3,'p_factor_float','generic.py',200),
49+
('factor_float -> signed_float UINT power numeric_power','factor_float',4,'p_factor_float','generic.py',201),
50+
('factor_int -> UINT','factor_int',1,'p_factor_int','generic.py',214),
51+
('factor_int -> UINT signed_int','factor_int',2,'p_factor_int','generic.py',215),
52+
('factor_int -> UINT power numeric_power','factor_int',3,'p_factor_int','generic.py',216),
53+
('factor_int -> UINT UINT signed_int','factor_int',3,'p_factor_int','generic.py',217),
54+
('factor_int -> UINT UINT power numeric_power','factor_int',4,'p_factor_int','generic.py',218),
55+
('factor_fits -> UINT power OPEN_PAREN signed_int CLOSE_PAREN','factor_fits',5,'p_factor_fits','generic.py',236),
56+
('factor_fits -> UINT power signed_int','factor_fits',3,'p_factor_fits','generic.py',237),
57+
('factor_fits -> UINT SIGN UINT','factor_fits',3,'p_factor_fits','generic.py',238),
58+
('factor_fits -> UINT OPEN_PAREN signed_int CLOSE_PAREN','factor_fits',4,'p_factor_fits','generic.py',239),
59+
('product_of_units -> unit_expression product product_of_units','product_of_units',3,'p_product_of_units','generic.py',258),
60+
('product_of_units -> unit_expression product_of_units','product_of_units',2,'p_product_of_units','generic.py',259),
61+
('product_of_units -> unit_expression','product_of_units',1,'p_product_of_units','generic.py',260),
62+
('unit_expression -> function','unit_expression',1,'p_unit_expression','generic.py',271),
63+
('unit_expression -> unit_with_power','unit_expression',1,'p_unit_expression','generic.py',272),
64+
('unit_expression -> OPEN_PAREN product_of_units CLOSE_PAREN','unit_expression',3,'p_unit_expression','generic.py',273),
65+
('unit_with_power -> UNIT power numeric_power','unit_with_power',3,'p_unit_with_power','generic.py',282),
66+
('unit_with_power -> UNIT numeric_power','unit_with_power',2,'p_unit_with_power','generic.py',283),
67+
('unit_with_power -> UNIT','unit_with_power',1,'p_unit_with_power','generic.py',284),
68+
('numeric_power -> sign UINT','numeric_power',2,'p_numeric_power','generic.py',295),
69+
('numeric_power -> OPEN_PAREN paren_expr CLOSE_PAREN','numeric_power',3,'p_numeric_power','generic.py',296),
70+
('paren_expr -> sign UINT','paren_expr',2,'p_paren_expr','generic.py',305),
71+
('paren_expr -> signed_float','paren_expr',1,'p_paren_expr','generic.py',306),
72+
('paren_expr -> frac','paren_expr',1,'p_paren_expr','generic.py',307),
73+
('frac -> sign UINT division sign UINT','frac',5,'p_frac','generic.py',316),
74+
('sign -> SIGN','sign',1,'p_sign','generic.py',322),
75+
('sign -> <empty>','sign',0,'p_sign','generic.py',323),
76+
('product -> STAR','product',1,'p_product','generic.py',332),
77+
('product -> PERIOD','product',1,'p_product','generic.py',333),
78+
('division -> SOLIDUS','division',1,'p_division','generic.py',339),
79+
('power -> DOUBLE_STAR','power',1,'p_power','generic.py',345),
80+
('power -> CARET','power',1,'p_power','generic.py',346),
81+
('signed_int -> SIGN UINT','signed_int',2,'p_signed_int','generic.py',352),
82+
('signed_float -> sign UINT','signed_float',2,'p_signed_float','generic.py',358),
83+
('signed_float -> sign UFLOAT','signed_float',2,'p_signed_float','generic.py',359),
84+
('function_name -> FUNCNAME','function_name',1,'p_function_name','generic.py',365),
85+
('function -> function_name OPEN_PAREN main CLOSE_PAREN','function',4,'p_function','generic.py',371),
8586
]

0 commit comments

Comments
 (0)