reformatting

Parsing / reformatting a tokenized list in python

Parsing / reformatting a tokenized list in python Question: I have lists of tokens of the form "(a OR b) AND c OR d AND c" or "(a OR b) AND c OR (d AND c)" I want to reformat these tokens into a string of the form: Expressions are of arbitrary form like (a …

Total answers: 1

Formatting list of n-length in SQL friendly string

Formatting list of n-length in SQL friendly string Question: I want to be able to enter a list OF ANY LENGTH consisting of 6-digit GLs. Needs to be variable length list for future development. Reformatting: Add leading 0000s because old SAP just loves random extra zeros. Convert the list into the proper formatted string for …

Total answers: 1

Tool to automatically expand YAML merges?

Tool to automatically expand YAML merges? Question: I’m looking for a tool or process which can easily take a YAML file which contains anchors, aliases and merge keys and expand the aliases and merges out into a flat YAML file. There are still many commonly used YAML parses which don’t fully support merging. I’d like …

Total answers: 4