Scala Parser Combinators
Advent-of-code
Our great sponsors
Scala Parser Combinators | Advent-of-code | |
---|---|---|
3 | 25 | |
641 | 27 | |
0.5% | - | |
7.0 | 0.0 | |
20 days ago | over 1 year ago | |
Scala | Nim | |
Apache License 2.0 | - |
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.
Scala Parser Combinators
-
thoroughful tutorial for scala.util.parsing.combinator._
If you find anything that isn't already linked from the README at https://github.com/scala/scala-parser-combinators , please PR the addition to the readme.
-
-🎄- 2021 Day 18 Solutions -🎄-
Mostly a mess of pattern matching. I really need to make some generic tree utilities. Haven't been able to find a decent parser combinator that works in Scala 3 (I usually use fastparse which depends heavily on Scala 2 macros, and scala-parser-combinators works in Scala 3, but I've had a lot of trouble getting it to not be too greedy), so I used the state monad from cats to parse at the bottom of the file, which I think turned out fairly nice.
Advent-of-code
- -🎄- 2022 Day 11 Solutions -🎄-
- -🎄- 2022 Day 9 Solutions -🎄-
-
-🎄- 2022 Day 6 Solutions -🎄-
Wow, almost identical to mine: https://github.com/MichalMarsalek/Advent-of-code/blob/master/2022/Nim/day6.nim
- -🎄- 2022 Day 4 Solutions -🎄-
- -🎄- 2022 Day 3 Solutions -🎄-
- -🎄- 2022 Day 2 Solutions -🎄-
- -🎄- 2021 Day 19 Solutions -🎄-
- -🎄- 2021 Day 18 Solutions -🎄-
-
-🎄- 2021 Day 15 Solutions -🎄-
Beautiful Nim! My solution is actually very similar.
-
[2021 Day 14 (Part 2)] Further optimization?
Or you can just add only one letter from each pair and hence avoid the double counting.
What are some alternatives?
Fast Parse - Writing Fast Parsers Fast in Scala
Scopt - command line options parsing for Scala
Parboiled2 - A macro-based PEG parser generator for Scala 2.10+
Scallop - a simple Scala CLI parsing library
atto - friendly little parsers
decline - A composable command-line parser for Scala.
CLIST - Command Line Interface Scala Toolkit
Kaitai Struct - Kaitai Struct: declarative language to generate binary data parsers in C++ / C# / Go / Java / JavaScript / Lua / Nim / Perl / PHP / Python / Ruby
AdventOfCode2021 - Solutions to all 25 AoC 2021 problems in Rust :crab: Less than 100 lines per day and under 1 second total execution time! :christmas_tree:
aoc2021 - Solutions to Advent of Code 2021
Wren - The Wren Programming Language. Wren is a small, fast, class-based concurrent scripting language.
CSpydr - A static typed low-level compiled programming language inspired by Rust and C