Transparent

class ase2sprkkr.common.grammar.Transparent(expr, savelist=False)[source]

Pyparsing ParseElementEnhance wrongly takes care about whitespaces, if there is nested Forward with whitespaces not already set. So we have to use out own lightweight replacement.

Class hierarchy

Inheritance diagram of ase2sprkkr.common.grammar.Transparent


Constructor

Parameters:
  • expr (Union[ParserElement, str])

  • savelist (bool)

__init__(expr, savelist=False)
Parameters:
  • expr (pyparsing.core.ParserElement | str)

  • savelist (bool)

Return type:

None

preParse(instring, loc)[source]
parseImpl(instring, loc, do_actions=True)[source]
_abc_impl = <_abc._abc_data object>