Lexer and parser generators using CTFE

Philippe Sigaud philippe.sigaud at gmail.com
Wed Feb 29 01:48:33 PST 2012


Le 29 févr. 2012 07:20, "Nick Sabalausky" <a at a.a> a écrit :
>
> "Nick Sabalausky" <a at a.a> wrote in message
> news:jikcit$201o$1 at digitalmars.com...
> >
> > Hmm, maybe I need to think about what it would take to make Goldie able
to
> > parse at compile-time...
> >
>
> Just gave it a quick shot. It was looking like it might not be too bad,
but
> then I hit:
>
> Assertion failure: 'ctfeStack.stackPointer() == 0' on line 4823 in file
> 'interpret.c'
>
> Bleh.
>
> (This was with DMD 2.058)

Yeah, I had the very same yesterday :(

Also, another one on line 94 in interpret.c 'v->ctfeSomethin' failing.

Too bad.

In my case, I found a workaround: I was doing

array[] ~= SomeStruct(args);

which asserts at CTFE.

But:

auto s = SomeStructs(args);
array[] ~= s;

works.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120229/60d15202/attachment.html>


More information about the Digitalmars-d mailing list