tuxemon.script.parser module

tuxemon.script.parser.parse_action_string(text)[source]
Parameters:

text (str) –

Return type:

Tuple[str, Sequence[str]]

tuxemon.script.parser.parse_behav_string(behav_string)[source]
Parameters:

behav_string (str) –

Return type:

Tuple[str, Sequence[str]]

tuxemon.script.parser.parse_condition_string(text)[source]
Parameters:

text (str) –

Return type:

Tuple[str, str, Sequence[str]]

tuxemon.script.parser.split_escaped(string_to_split, delimeter=',')[source]

Splits a string by the specified deliminator excluding escaped ones.

Parameters:
  • string_to_split (str) – The string to split.

  • delimeter (str) – The deliminator to split the string by.

Returns:

A list of the split string.

Return type:

Sequence[str]