Whiteknight / ParserObjects

C# library for parser combinators
https://whiteknight.github.io/ParserObjects
Apache License 2.0
6 stars 0 forks source link

IPrattParseContext implements IParser #165

Closed Whiteknight closed 1 year ago

Whiteknight commented 1 year ago
public interface IPrattParseContext<TInput, TOutput> : IPrattParseContext<TInput>, IParser<TInput, TOutput>

The problem is that the context now supports all the IParser extension methods, and it's not clear exactly what the meaning of that would be. Either add some tests to nail down the behavior, or remove the IParser inheritance from IPratParseContext and figure out how to replace the necessary bits with something else.

Whiteknight commented 1 year ago

We actually do have a test for this already, and it seems like it works exactly like we would expect. So I'm closing this.