Skip to content

Instantly share code, notes, and snippets.

View Krish120003's full-sized avatar

Krish Krish120003

View GitHub Profile
@Krish120003
Krish120003 / main.rs
Created June 16, 2024 16:12
A JSON Parser in 500 Lines
use std::collections::HashMap;
#[derive(Debug)]
enum JSONParseError {
Error(usize),
NotFound,
UnexpectedChar(usize),
MissingClosing(usize),
}