Skip to content

Instantly share code, notes, and snippets.

@rdivyanshu
rdivyanshu / pcomb.ml
Created September 14, 2025 09:26 — forked from neel-krishnaswami/pcomb.ml
A linear-time parser combinator library in Ocaml
module C : sig
type t
val empty : t
val one : char -> t
val union : t -> t -> t
val inter : t -> t -> t
val top : t
val mem : char -> t -> bool
val make : (char -> bool) -> t
val equal : t -> t -> bool