ocebuild.parsers._lib#

Parser helper functions.

Module Contents#

Functions#

update_cursor(→ None)

Updates the cursor dictionary.

Attributes#

TAGS

Preprocessor tags for controlling output dict semantics.

ocebuild.parsers._lib.TAGS = ('@append', '@delete', '@fallback', '@override', '@prepend')[source]#

Preprocessor tags for controlling output dict semantics.

ocebuild.parsers._lib.update_cursor(level: int, key: str, cursor: dict, upshift: int = 0) None[source]#

Updates the cursor dictionary.

Parameters:
  • level – The level of the cursor.

  • key – The key of the cursor.

  • cursor – The cursor dictionary.

  • uplevel – Number of levels to ignore