|
t_whitespace
|
t_whitespace ( self, s )
\s+
|
|
t_id_average
|
t_id_average ( self, s )
average
|
|
t_mul
|
t_mul ( self, s )
\*
|
|
t_id_sum
|
t_id_sum ( self, s )
sum
|
|
t_id_molecule
|
t_id_molecule ( self, s )
molecule
|
|
t_dot
|
t_dot ( self, s )
\.
|
|
t_number_int
|
t_number_int ( self, s )
\d+
|
|
tokenize
|
tokenize ( self, input )
|
|
t_number_float
|
t_number_float ( self, s )
\d+ \. \d*
|
|
t_add
|
t_add ( self, s )
\+
|
|
t_sub
|
t_sub ( self, s )
\-
|
|
error
|
error (
self,
s,
pos,
)
Exceptions
|
|
ValueError, "Lexical error at position %s" % pos
|
|
|
t_div
|
t_div ( self, s )
/
|
|
t_identifier
|
t_identifier ( self, s )
[a-zA-Z_]\w*
|
|
t_id_residue
|
t_id_residue ( self, s )
residue
|
|
t_id_atom
|
t_id_atom ( self, s )
atom
|
|