101
SOLUTION MEGATHREAD-🎄- 2022 Day 2 Solutions -🎄-(self.adventofcode)
submitted 3 years, 1 month ago* (edited 4 days, 4 hours after) by daggerdragon to /r/adventofcode (134.8k)
NEW AND NOTEWORTHY
- All of our rules, FAQs, resources, etc. are in our [community wiki](/r/adve...
since 3 years, 1 month ago
1 of 1
Tip Reveddit Real-Time can notify you when your content is removed.
your account history
Tip Check if your account has any removed comments.
view my removed comments you are viewing a single comment's thread.
view all comments


Flex:
This is the venerable Flex utility. It generates C code for you, which you then compile. The code looks for regular expressions from a source (by default
stdin) and when it matches one it calls the{ actions }. At EOF it prints the answer.If you save it as an
aoc.lfile and trymake aocit should build with default make rules. Then do./aoc < input.txtand you get the answers.