package com.example.playground.monadic.parser.combinators;

import com.example.playground.result.Result;

import java.util.stream.BaseStream;

@FunctionalInterface
public interface Parser<T, E, I, S extends BaseStream<I, S>> {
    Result<ParserResult<T, I, S>, E> parse(S input);
}

Add functional interface for parsers
Add functional interface for parsers
