otac0n / Pegasus

A PEG parser generator for .NET that integrates with MSBuild and Visual Studio.

Home Page:http://otac0n.com/Pegasus/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to define an interface

niemyjski opened this issue · comments

I was pondering the idea of having the generated class derive from an interface and then use member section to define the implementation details. Would it be possible to add support for this?

Then I could do something like MyParser: IParser { }

Pegasus classes are declared as partial which should allow you to extend the class definition. I would recommend adding the interface and implementing methods in a separate C# file..