Simple string parsing algorithm for splitting things like [a, b] into ["a", "b"]. Not fully finished & usable, but there are unit tests in tHalgorithm.nim::Strparser
Procs
proc fmtArgs(str: string; until: string; default: seq[string] = @[]): tuple[ args: seq[string], argl: int] {....raises: [], tags: [].}
- Source Edit
proc parseTo(str: string; t: seq[string]): Option[seq[string]] {. ...raises: [RegexError], tags: [].}
- Source Edit
proc toStrSeq(str: string): seq[string] {....raises: [RegexError], tags: [].}
- Parser string to sequence of strings Source Edit
proc tupleSplit(str: string; delim: string): (string, string) {....raises: [], tags: [].}
- Source Edit