STuple.Deformatter

Namespace: SnowBank.Data.Tuples · class

Methods for parsing tuples from strings

Methods

Parse

static IVarTuple Parse(string expression)

Parses a tuple expression from a string

ParseNext

static void ParseNext(string expression, out IVarTuple tuple, out string tail)

Parses a tuple expression at the start of a string

  • expression — String that starts with a valid Tuple expression, with optional extra characters

Returns: First item is the parsed tuple, and the second item is the rest of the string (or null if we consumed the whole expression)