Skip to content

Instantly share code, notes, and snippets.

View divyaankt's full-sized avatar

Divyaank Tiwari divyaankt

View GitHub Profile
@norswap
norswap / Combinators.java
Last active January 19, 2023 09:12
Handwritten JSON Parser with Parser Combinators
// Code for lecture [7. Parsing Combinators]
// https://www.youtube.com/watch?v=3Cfq4i6754s&list=PLOech0kWpH8-njQpmSNGSiQBPUvl8v3IM&index=7
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Deque;
import java.util.HashMap;
import java.util.Scanner;
import java.util.function.Supplier;