# \#advent-of-code-2022

**URL:** https://swi-prolog.discourse.group/tag/advent-of-code-2022/141.md

[Latest](https://swi-prolog.discourse.group/latest.md) · [Categories](https://swi-prolog.discourse.group/categories.md) · [Tags](https://swi-prolog.discourse.group/tags.md)

---

## [Dcg/high\_order sequence/3 nested with the same separator](https://swi-prolog.discourse.group/t/dcg-high-order-sequence-3-nested-with-the-same-separator/5990)

<div class="topic-metadata">

**Author:** [@dklyons81](https://swi-prolog.discourse.group/u/dklyons81)\
**Replies:** 3\
**Last updated:** [December 4, 2022, 9:06pm UTC](https://swi-prolog.discourse.group/t/dcg-high-order-sequence-3-nested-with-the-same-separator/5990 "2022-12-04T21:06:26Z")

</div>

Hi, I’m trying to parse the Advent of Code 2022 Day 1 input file, which looks like this: 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 For the purposes of this challenge, this should parse to \[\[1000,2000,3000…
