swift-interpreter
swift-interpreter | AdventOfCode2023 | |
---|---|---|
2 | 1 | |
1 | 0 | |
- | - | |
9.1 | 7.0 | |
5 months ago | 5 months ago | |
Swift | Rust | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
swift-interpreter
-
Advent of Code 2023 is nigh
I don't get the amount of effort people out into the replacement-strategy, I did perfectly fine without it and the code is about as complex as the examples I've seen.
https://github.com/codr7/swift-interpreter/blob/main/part10/...
-
Writing a Compiler is Surprisingly Easy (part 1)
If you don't mind interpreters and/or swift, I'm working on something here:
https://github.com/codr7/swift-interpreter
AdventOfCode2023
-
Advent of Code 2023 is nigh
I ended up using parser combinator library nom. It's not something I use daily, therefore parsing became a puzzle on its own.
Nom already has a parser for numbers. However, I didn't find an elegant way to take at most one digit. In the end I used take_while_m_n, and mapped it with u64::from_str().
Another challenge was absence of something such as find_all, that would repeatedly try to parse beginning from each character and then return all matches. I ended up writing my own combinator.
https://github.com/drola/AdventOfCode2023/blob/main/src/bin/...
What are some alternatives?
advent_of_code_ex - Advent of Code solutions in Elixir, and a bunch of musings on them.
kino_aoc - A helper for Advent of Code (a smart cell) for Elixir Livebook
advent2023 - scribblings at advent of code 2023
advent-of-code - Advent of Code 2022 solutions
tanenbaum - OCaml Advent of Code starter project
stoneknifeforth - a tiny self-hosted Forth implementation
fs_playground - F# Playground
scryer-prolog - A modern Prolog implementation written mostly in Rust.
advent-of-code-rust - 🎄Starter template for solving Advent of Code in Rust.
adventofcode - 🎅 Repo where anyone can solve puzzles from adventofcode.com