pry-parser icon indicating copy to clipboard operation
pry-parser copied to clipboard

Some features seems not released in the current version

Open vanaur opened this issue 4 years ago • 1 comments

So, simply by adding pry as a dependency on a virgin project, and using features that are present in the documentation and examples, dub indicates that these features are non-existent. I have identified the following combinators that were not recognized: delimited, optional, skipWs, slice, utfString and also the stk atom. There may be others.

Searching in the code and in the different versions, it seems that the combinators I quoted are not part of the old versions (under 0.3.2), but it is indeed this version that I included in the blank project...

Here is a simple example (by the way, the examples in the "example" folder don't work for me either):

import pry;
import std.stdio;

void main()
{
    alias S = SimpleStream!string;
    with(parsers!S)
    {
        auto p = delimited(range!('0', '9').rep, tk!',');
        auto s = "1,2,3".stream;
        string[] values;
        S.Error err;
        auto r = p.parse(s, values, err);
        writeln(r);
    }
}

With the following dub.sdl :

name "test"
dependency "pry" version="~>0.3.2"

By building, I get:

$ dub build
pry 0.3.2: target for configuration "library" is up to date.
test ~master: building configuration "application"...
source\app.d(9,12): Error: undefined identifier delimited

What's wrong with all this? How come I'm using the "newest" version of pry, but an older version of the library seems to be used instead? Perhaps a new version should be updated?

vanaur avatar Jan 22 '21 17:01 vanaur

Sorry for late reply.

Yes, it seems I never got around to releasing the final cut. In any case I pushed latest as v0.4.0 it'll probably get in sync with dub repository sometime later.

DmitryOlshansky avatar Feb 14 '21 16:02 DmitryOlshansky