grammar_types

Full name: ase2sprkkr.common.grammar_types

Description

Classes, that represents various value types that can appear in the configuration and problem definitionfiles.

Each grammar type can both parse string containing a value of a given type, and to create the string containing a given value.

Module Attributes

type_from_type_map

The standard grammar_types for python types.

type_from_set_map

Map the python type of a collection member to a grammar type of the collection.

recognized_set_types

The types, that are recognized as 'list of values' and so that will be accepted as values for array_like type (e.g. Array or SetOf).

Modules

ase2sprkkr.common.grammar_types.data

This module contains special GrammarTypes used for large data in output files

ase2sprkkr.common.grammar_types.mixed

A variant value to be used in input files (in unknown - custom - options)

ase2sprkkr.common.grammar_types.warnings

ase2sprkkr.common.grammar_types.basic

Common GrammarTypes as numbers, strings etc.

ase2sprkkr.common.grammar_types.grammar_type

Basic types for GrammarTypes and usefull functions

ase2sprkkr.common.grammar_types.arrays

Grammar types for array, sequences and tables