diff options
Diffstat (limited to 'aoc-2022-dotnet/Common/Library.fs')
-rw-r--r-- | aoc-2022-dotnet/Common/Library.fs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/aoc-2022-dotnet/Common/Library.fs b/aoc-2022-dotnet/Common/Library.fs new file mode 100644 index 0000000..7354509 --- /dev/null +++ b/aoc-2022-dotnet/Common/Library.fs @@ -0,0 +1,8 @@ +module Common + +open FParsec + +let parse parser input = + match run parser input with + | Success (result, _, _) -> result + | _ -> failwith "Invalid input format!" |