Software Secret Weapons™


 
Inside Code Linguine
by Pavel Simakov on 2006-04-22 10:41:14 under Code Linguine, view comments
Bookmark and Share
 


About  •  Contact  •  Articles  •  Projects  •  My Links  •  My Bookshelf  •  Past And Present

The entire source in included under LGPL license.

Package compiles under Delphi 5, 6, 7.

The Code Linguine package contains:

With this package you can parse any Pascal file. Any file written in Object Pascal for Delphi from version 1 to 5 will be parsed. The same applies to the Delphi form files. We tried many, including:

  • all PAS/DFM files shipped with Delphi 1-5
  • all third-party files we had in house including SysTools, Rave, etc.
  • all project files we written ourselves

Times change and the grammars might need a little work for Delphi 6 and 7. The parser grammars in this package include all original LEX/YACC files if you desire to make modifications. These grammars were built using modification to Version 4.1 of TPLY (Turbo Pascal Lex and Yacc), a compiler generator for Turbo Pascal and compatibles.

You can find demo application in \source\sample. This application shows you how to:

  • parse *.pas file
  • convert source file abstract syntax tree (AST) into XML DOM document
  • create syntax highlighter using source abstract syntax tree

No comments yet


Leave a comment


 
Dog Emotional 2010 Calendar Dog Emotional Mousepad Dog Fashionable 2010 Calendar Dog Fashionable Mousepad

Copyright © 2004-2010 by Pavel Simakov
any conclusions, recommendations, ideas, thoughts or the source code presented on this site are my own and do not reflect a official opinion of my current or past employers, partners or clients
SourceForge.net Logo