I am looking for a basic (or good) Delphi lexer#

Well, I know about DGrok, which seems to be a great tool. However, it is written all in C# and therefore all in .NET only. For a upcoming project, which I want to make open source once finished, I need a lexer, which is written in native Pascal/Delphi. It does not need to be perfect, however, it should return all data of the interface part in units, and it should analyze Delphi-PRAXiSR-Files as well.

The lexer (maybe a simple parser suffices) must be open source and come with just about any license out there, though I prefer MPL over (L)GPL any day.

Anyone with a good hint out there? Thanks!

P.S.: Merry Christmas and a happy new year.

Saturday, December 22, 2007 4:10:15 PM (W. Europe Standard Time, UTC+01:00) #    Comments [5]  | 

 

Google AdSense


Saturday, December 22, 2007 8:04:32 PM (W. Europe Standard Time, UTC+01:00)
This is the one Castalia was based upon: http://code.google.com/p/castaliadelphiparser/
Lars Truijens
Sunday, December 23, 2007 7:23:43 AM (W. Europe Standard Time, UTC+01:00)
- Martin WALDENBURG has his mwLexer, which is included in the BDS4 demos under C:\Program Files\Borland\BDS\4.0\Demos\Delphi.Net\VCL\Lexer
- a previous version of this was the basis of EssModel, an UML reverse engineering tool (with source code, of course) which can be found on Torry, I guess
- we have published, here and there, very simplified lexers for dedicated purposes, like finding the USES, converting Pascal or Sql to HTML etc

Those are all scanners (Lexers), not parsers. We have used other lexers / scanners, built from a Pascal / Delphi GRAMMAR. The grammar is published on our site, but we have not published the lexers/scanners at this time.

Hope Santa will bring you this lexer :)
Sunday, December 23, 2007 10:51:09 AM (W. Europe Standard Time, UTC+01:00)
Gold Parser (http://www.devincook.com/goldparser/) has a Delphi grammar.
Ajasja Ljubetič
Wednesday, December 26, 2007 1:43:43 AM (W. Europe Standard Time, UTC+01:00)
Turbo Pascal Lex/Yacc is an open source Object Pascal project You can find it here:
http://www.musikwissenschaft.uni-mainz.de/~ag/tply/
Source code:
http://www.musikwissenschaft.uni-mainz.de/~ag/tply/tply41a.zip

Also, check the FreePascal distro. I think it has an an updated version but I'm not sure.

What is your new project about?
masroor
Wednesday, December 26, 2007 1:44:54 AM (W. Europe Standard Time, UTC+01:00)
ESSModel homepage is:
http://sourceforge.net/projects/essmodel
masroor
Comments are closed.
All content © 2008, Daniel Wischnewski
On this page
Archives
Promoted Links
Blogroll OPML
My current Flickr Images
www.flickr.com
Dies ist ein Flickr Modul mit �ffentlichen Fotos und Videos von dwischnewski. Ihr eigenes Modul k�nnen Sie hier erstellen.
Recommendations
Sitemap
Special Pages
Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Theme design by Jelle Druyts