On 06 Oct 2014, at 17:12, Thierry Goubier <thierry.goubier@gmail.com> wrote:



2014-10-06 17:06 GMT+02:00 Marcus Denker <marcus.denker@inria.fr>:

> On 06 Oct 2014, at 14:29, Thierry Goubier <thierry.goubier@gmail.com> wrote:
>
> I'm encountering DNUs in the Styler in Pharo 4.0. Is someone else encountering those as well?
>
> A way to reproduce:
>
> RBParser parseFaultyMethod: 'test ^ ()�
>

When I execute that I do not get any problems with the styler, but the faulty expression parsing itself fails for
this input�

(dnu #addParenthesis: on the ErrorNode)

I get the same error in Pharo3.

        Marcus

I had the setting on "use AST styler" which explains the DNUs. I turned it off so that's solved.

Yes, this is not completely working yet� we need to do the move and fix all the bugs� 

The sequence above shows that the RBParserErrorNode thing [1] works in some cases and not all.

Are you planning something in that area?


Planning yes� but not started yet� I need to finish other things before. So every contribution is welcome...

Thierry

[1] encapsulating a syntax error in a RBParserErrorNode so that: styling can happen on a correct part of the code; and that (maybe) parsing can continue.