moleculekit.atomselect.languageparser module#

moleculekit.atomselect.languageparser.p_compop(p)#
compopEQUAL
LESSER
GREATER
LESSEREQUAL
GREATEREQUAL
moleculekit.atomselect.languageparser.p_error(p)#
moleculekit.atomselect.languageparser.p_expression_comp(p)#

expression : expression compop expression %prec COMP

moleculekit.atomselect.languageparser.p_expression_exwithin(p)#

expression : EXWITHIN number OF expression

moleculekit.atomselect.languageparser.p_expression_grouped(p)#

expression : LPAREN expression RPAREN

moleculekit.atomselect.languageparser.p_expression_logop(p)#

expression : expression logop expression

moleculekit.atomselect.languageparser.p_expression_molprop(p)#
expressionmolprop_str_eq
molprop_int_eq
moleculekit.atomselect.languageparser.p_expression_numprop(p)#

expression : numprop

moleculekit.atomselect.languageparser.p_expression_sameas(p)#
expressionSAME FRAGMENT AS expression
SAME molprop_int AS expression
SAME molprop_str AS expression
moleculekit.atomselect.languageparser.p_expression_unary_not(p)#

expression : NOT expression %prec UNOT

moleculekit.atomselect.languageparser.p_expression_within(p)#

expression : WITHIN number OF expression

moleculekit.atomselect.languageparser.p_float(p)#
floatFLOAT
QUOTEDFLOAT
moleculekit.atomselect.languageparser.p_float_unary_minus(p)#

float : MINUS float %prec UMINUS

moleculekit.atomselect.languageparser.p_func_number(p)#

number : func

moleculekit.atomselect.languageparser.p_integer(p)#
integerINTEGER
QUOTEDINT
moleculekit.atomselect.languageparser.p_integer_range(p)#

integer : integer TO integer

moleculekit.atomselect.languageparser.p_integer_unary_minus(p)#

integer : MINUS integer %prec UMINUS

moleculekit.atomselect.languageparser.p_literal_list(p)#
listlist string
list integer
string string
string integer
integer integer
integer string
moleculekit.atomselect.languageparser.p_logop(p)#
logopAND
OR
moleculekit.atomselect.languageparser.p_mathop(p)#
mathopPLUS
MINUS
TIMES
DIVIDE
moleculekit.atomselect.languageparser.p_molecule(p)#
expressionPROTEIN
NUCLEIC
ION
IONS
LIPID
LIPIDS
WATER
WATERS
BACKBONE
HYDROGEN
NOH
SIDECHAIN
moleculekit.atomselect.languageparser.p_molprop_int(p)#
molprop_intINDEX
SERIAL
RESID
RESIDUE
moleculekit.atomselect.languageparser.p_molprop_int_eq(p)#
molprop_int_eqmolprop_int integer
molprop_int list
moleculekit.atomselect.languageparser.p_molprop_int_modulo(p)#
molprop_int_eqmolprop_int MODULO integer DOUBLEEQ integer
molprop_int MODULO integer NOTEQ integer
moleculekit.atomselect.languageparser.p_molprop_string(p)#
molprop_strNAME
ELEMENT
RESNAME
ALTLOC
SEGNAME
SEGID
INSERTION
CHAIN
moleculekit.atomselect.languageparser.p_molprop_string_eq(p)#
molprop_str_eqmolprop_str string
molprop_str number
molprop_str list
moleculekit.atomselect.languageparser.p_num_funcs(p)#
funcABS LPAREN number RPAREN
SQR LPAREN number RPAREN
SQRT LPAREN number RPAREN
moleculekit.atomselect.languageparser.p_number(p)#
numberinteger
float
moleculekit.atomselect.languageparser.p_number_expression(p)#

expression : number

moleculekit.atomselect.languageparser.p_number_mathop(p)#

number : number mathop number

moleculekit.atomselect.languageparser.p_number_unary_minus(p)#

number : MINUS number %prec UMINUS

moleculekit.atomselect.languageparser.p_numprop_mathop(p)#
numpropnumprop mathop number
numprop mathop numprop
moleculekit.atomselect.languageparser.p_numprop_number(p)#
numpropCHARGE
MASS
OCCUPANCY
BETA
XCOOR
YCOOR
ZCOOR
moleculekit.atomselect.languageparser.p_prop_funcs(p)#
funcABS LPAREN numprop RPAREN
SQR LPAREN numprop RPAREN
SQRT LPAREN numprop RPAREN
moleculekit.atomselect.languageparser.p_string(p)#
stringSTRING
QUOTEDSTRING
QUOTEDSTRINGSINGLE
moleculekit.atomselect.languageparser.t_FLOAT(t)#

(d*.d+)|(d+.d*)

moleculekit.atomselect.languageparser.t_INTEGER(t)#

d+(?![A-Za-z])

moleculekit.atomselect.languageparser.t_QUOTEDFLOAT(t)#

“(d*.d+)”|”(d+.d*)”|\'(\d*\.\d+)\'|'(d+.d*)'

moleculekit.atomselect.languageparser.t_QUOTEDINT(t)#

“(-?d+)”|'(-?d+)'

moleculekit.atomselect.languageparser.t_QUOTEDSTRING(t)#

“(?:[^”\]|\.)*”

moleculekit.atomselect.languageparser.t_QUOTEDSTRINGSINGLE(t)#

‘(?:[^’\]|\.)*’

moleculekit.atomselect.languageparser.t_STRING(t)#

[a-zA-Z_0-9’]+

moleculekit.atomselect.languageparser.t_XCOOR(t)#

x

moleculekit.atomselect.languageparser.t_YCOOR(t)#

y

moleculekit.atomselect.languageparser.t_ZCOOR(t)#

z

moleculekit.atomselect.languageparser.t_error(t)#