Keyword

class ase2sprkkr.common.grammar_types.basic.Keyword(*keywords, aliases=None, transform='upper', quote=None, **kwargs)[source]

A value, that can take values from the predefined set of strings.

Class hierarchy

Inheritance diagram of ase2sprkkr.common.grammar_types.basic.Keyword


Constructor

__init__(*keywords, aliases=None, transform='upper', quote=None, **kwargs)[source]
_build_grammar()[source]
_parse_keyword_token(tokens)[source]
items()[source]
_validate(value, why='set')[source]
_string(val)[source]
grammar_name()[source]
convert(value)[source]
additional_description(prefix='')[source]
is_independent_on_the_predecessor = True

Options of most grammar types do not identify themselves, so they have to be either identified by their names, or if name is not given, by their predecessors. Hoewever, e.g. keyword arguments can be identified just by their value.