[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-devel
Subject:    Re: KDevelop-PG bug when printing First/Follow conflicts
From:       Roberto Raggi <roberto () kdevelop ! org>
Date:       2007-07-19 23:13:12
Message-ID: DF2633F1-FA30-4CE3-B436-F4A38468B14F () kdevelop ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Andreas!

Il giorno 20/lug/07, alle ore 00:32, Andreas Pakulat ha scritto:

> Hi,
>
> I think there's a bug when kdevelop prints the warning about
> first/follow conflicts. The output for the qmake parser before  
> revision
> 690040 contained

actually I found a good number of bugs in kdev-pg :( For instance, -- 
no-ast is broken, scopes are not working as expected,   
yy_expected_token is used in the wrong way and a few other little  
things. So, it's time for a new version :-) My plan:

  - update astyle. The version used in kdev-pg is very old and buggy.

  - improve the library. I want generalize the kdev-pg-token-stream  
and rewrite AST and Visitors

  - do something with the AST generator. Maybe I just have to write a  
different tool to generate ASTs

  - automatic backtracking

  - deprecate the current input file format and use something a  
little bit "more standard" (a lot of people asked for it). It sucks  
because I have to write a tool to convert kdev-pg 1.x files :(

>
>
> and the information about which rules/tokens first set conflicted with
> the follow set of the rule is missing. I looked at the code, but  
> didn't
> get very far.

and of course fix this one ;-)

I will branch kdev-pg and start to fix it tomorrow. I will send an  
email to kdevelop-devel with the url of the new repository.

ciao robe


[Attachment #5 (unknown)]

<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space; "> <div><br \
class="webkit-block-placeholder"></div><div>Hi Andreas!</div><br><div><div>Il giorno \
20/lug/07, alle ore 00:32, Andreas Pakulat ha scritto:</div><br \
class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: \
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi,</div><div \
style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; \
min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; ">I think there's a bug when kdevelop prints \
the warning about</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: \
0px; margin-left: 0px; ">first/follow conflicts. The output for the qmake parser \
before revision</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: \
0px; margin-left: 0px; ">690040 contained<span class="Apple-converted-space"> \
</span></div></blockquote><div><br \
class="webkit-block-placeholder"></div><div>actually I found a good number of bugs in \
kdev-pg :( For instance, --no-ast is broken, scopes are not working as expected,  \
yy_expected_token is used in the wrong way and a few other little things. So, it's \
time for a new version :-) My plan:</div><div><br \
class="webkit-block-placeholder"></div><div> - update astyle. The version used in \
kdev-pg is very old and buggy. </div><div><br></div><div> - improve the library. I \
want generalize the kdev-pg-token-stream and rewrite AST and Visitors</div><div><br \
class="webkit-block-placeholder"></div><div> - do something with the AST generator. \
Maybe I just have to write a different tool to generate ASTs</div><div><br \
class="webkit-block-placeholder"></div><div> - automatic backtracking</div><div><br \
class="webkit-block-placeholder"></div><div><div> - deprecate the current input file \
format and use something a little bit "more standard" (a lot of people asked for it). \
It sucks because I have to write a tool to convert kdev-pg 1.x files :(</div><br \
class="webkit-block-placeholder"></div><blockquote type="cite"><font \
class="Apple-style-span" color="#000000"><br></font><div style="margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; \
"><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">and the information about which rules/tokens first set conflicted \
with</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">the follow set of the rule is missing. I looked at the code, but \
didn't</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; ">get very far.<span class="Apple-converted-space"> \
</span></div></blockquote><div><br class="webkit-block-placeholder"></div>and of \
course fix this one ;-)</div><div><br></div><div>I will branch kdev-pg and start to \
fix it tomorrow. I will send an email to kdevelop-devel with the url of the new \
repository.</div><div><br></div><div>ciao robe</div><div><br \
class="webkit-block-placeholder"></div></body></html>



_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic