Prolog.NET icon indicating copy to clipboard operation
Prolog.NET copied to clipboard

Support for Modules in Prolog Grammar

Open AdamSobieski opened this issue 5 years ago • 5 comments

I would like to request support for modules in the Prolog grammar, as per module:functor(x, y, z).

AdamSobieski avatar Apr 15 '19 03:04 AdamSobieski

This is a really tough one, as this whole compiler/interpreter was done by Richard G. Todd.

Slesa avatar Apr 15 '19 15:04 Slesa

I modified the grammar and some of the Prolog.Code.* classes (e.g. adding a Module property to CodeFunctor). So far so good. The parser appears to be working for the indicated scenarios. Without unit tests for the grammar and parser, however, I have to continue to explore whether the changes impacted any other grammar or parser functionality.

AdamSobieski avatar Apr 16 '19 04:04 AdamSobieski

Can I get you branch somewhere?

Slesa avatar Apr 18 '19 06:04 Slesa

Sure. If you would like, I can email you the source code.

AdamSobieski avatar Apr 19 '19 02:04 AdamSobieski

What's your email address?

AdamSobieski avatar Apr 24 '19 00:04 AdamSobieski