pietroppeter / adventofnim

🎄👑 adventofnim - nim solutions for advent of code
https://pietroppeter.github.io/adventofnim/
MIT License
29 stars 1 forks source link

Regexes? no, learn Npeg! #1

Open zevv opened 3 years ago

zevv commented 3 years ago

https://github.com/pietroppeter/adventofnim/blob/fb2f90e491034342608b8fc302f8f0d239ce33c3/2020/day04.nim#L7

Or consider learning NPeg instead!

https://github.com/zevv/aoc2020/blob/master/04/main.nim

(Shameless plug!)

pietroppeter commented 3 years ago

Absolutely my thought after seeing your great solution! ❤️

https://twitter.com/pietroppeter/status/1334807215828574208?s=21

juancarlospaco commented 2 years ago

https://github.com/zevv/aoc2020/blob/master/04/main.nim

That should be in the npeg repo as a very "real world" use case example too IMHO.