Re: Pascal analyzer - Yacc?



On 2008-10-17, Borneq <borneq@xxxxxxxxxxxxxxxxxx> wrote:
I want to create Pascal code analyzer, language version Delphi/Kylix and
Lazarus, this tool also will convert between Delphi/Kylix and Lazarus. I
create library for Delphi and I want to use this library with Lazarus and
LCL.
LCL and VCL are differ and I want to convert my library to avoid maintain
two version.
I must parse Pascal code.
Which compiler generator better to use? Standard Yacc or another; I prefer
right analyze (LALR or LR(1))
Bison,BYacc,Gold,Lemon,SableCC ? or another from
http://en.wikipedia.org/wiki/Comparison_of_parser_generators,LPG,Monkey
I want to create table data or Pascal source;
furthermore be good if generator will freem, willingly in Delphi, if not -
in C/C++, ultimately Java.
Where I found good Delphi grammar?

I've no idea about yacc grammars, but if you use FPC/Lazarus, have a look at
the "passrc" package. It contains the parser used for, among others, the
fpdoc documentation generator.
.



Relevant Pages

  • Re: Is FPC an option in BDS because of MSBuild?
    ... Delphi is more powerfull than Lazarus and this is unlikely to ... Delphi" will every become. ... a "FPC inside Delphi". ... Delphi IDE refactors *Delphi* source code, ...
    (borland.public.delphi.non-technical)
  • Re: Was hat Zukunft
    ... Doch MS will Fox nicht mehr und für kleine ... im Forum auch besprochen wurde. ... Du kannst im Lazarus ja in einem Text Feld Eingaben vorgeben ... Es ist auch möglich die Komponenten, die im Delphi ja als Source ...
    (microsoft.public.de.fox)
  • Re: Delphi for Linux.
    ... I am not suggesting Lazarus as an alternative to Delphi. ... If it's possible to split it up in modules and if successfull then all kinds of programmers with different skillsets could participate. ... And the mac stuff is kinda interesting too... ...
    (alt.comp.lang.borland-delphi)
  • Re: Delphi and MacOS X ?
    ... In the mean time open source developers decided to create a separate project (nothing to do with Delphi). ... Not to kill Delphi, or compete against it, but rather to cover needs of Object Pascal developers that Borland does not cover. ... So your best bet for getting a native version of Delphi under Mac OS do is Lazarus, unless Borland changes it's mind and decides to put Mac OS X on the Roadmap. ...
    (borland.public.delphi.non-technical)
  • Re: Exporing the Explorer
    ... lot like Delphi. ... It's called Lazarus, ... because they consider Borland too unreliable ... to readily find Pascal programmers. ...
    (borland.public.delphi.non-technical)