styler (version 1.0.9000)

verify_str_txt: Verify the text of strings

Description

Make sure text of the tokens STR_CONST is correct and adapt if necessary. We first parse text again and include also non-terminal text. Then, we replace offending text in the terminal expressions with the text of their parents.

Usage

verify_str_txt(pd_with_terminal_text, text)

Arguments

pd_with_terminal_text

A parse table.

text

The text from which pd_with_terminal_text was created. Needed for potential reparsing.