Package Bio :: Package GenBank :: Module LocationParser :: Class LocationParser
[hide private]
[frames] | no frames]

Class LocationParser

source code

                 object --+    
                          |    
Parsers.spark.GenericParser --+
                              |
                             LocationParser

Instance Methods [hide private]
 
__init__(self, start='location')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
p_location(self, args)
location ::= absolute_location...
source code
 
p_function(self, args)
function ::= functional_operator open_paren location_list close_paren
source code
 
p_absolute_location(self, args)
absolute_location ::= local_location...
source code
 
p_path(self, args)
path ::= database double_colon primary_accession...
source code
 
p_feature_name(self, args)
feature_name ::= path colon feature_label...
source code
 
p_feature_label(self, args)
label ::= symbol
source code
 
p_local_location(self, args)
local_location ::= base_position...
source code
 
p_location_list(self, args)
location_list ::= location...
source code
 
p_functional_operator(self, args)
functional_operator ::= symbol
source code
 
p_base_position(self, args)
base_position ::= integer...
source code
 
p_low_base_bound(self, args)
low_base_bound ::= greater_than integer
source code
 
p_high_base_bound(self, args)
high_base_bound ::= less_than integer
source code
 
p_two_base_bound_1(self, args)
two_base_bound ::= open_paren base_position dot base_position close_paren
source code
 
p_two_base_bound_2(self, args)
two_base_bound ::= base_position dot base_position
source code
 
p_between_position(self, args)
between_position ::= base_position caret base_position
source code
 
p_base_range(self, args)
base_range ::= base_position double_dot base_position...
source code
 
p_database(self, args)
database ::= symbol
source code
 
p_primary_accession(self, args)
primary_accession ::= symbol
source code

Inherited from Parsers.spark.GenericParser: addRule, ambiguity, augment, buildState, buildTree, buildTree_r, collectRules, error, makeFIRST, parse, preprocess, resolve, typestring

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]

Inherited from Parsers.spark.GenericParser (private): _EOF, _START

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, start='location')
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

p_location(self, args)

source code 

location ::= absolute_location
location ::= feature_name
location ::= function

p_absolute_location(self, args)

source code 

absolute_location ::= local_location
absolute_location ::= path colon local_location

p_path(self, args)

source code 

path ::= database double_colon primary_accession
path ::= primary_accession

p_feature_name(self, args)

source code 

feature_name ::= path colon feature_label
feature_name ::= feature_label

p_local_location(self, args)

source code 

local_location ::= base_position
local_location ::= between_position
local_location ::= base_range

p_location_list(self, args)

source code 

location_list ::= location
location_list ::= location_list comma location

p_base_position(self, args)

source code 

base_position ::= integer
base_position ::= low_base_bound
base_position ::= high_base_bound
base_position ::= two_base_bound

p_base_range(self, args)

source code 

base_range ::= base_position double_dot base_position
base_range ::= function double_dot base_position
base_range ::= base_position double_dot function
base_range ::= function double_dot function