Re: Pascal analyzer - Yacc?
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Sat, 18 Oct 2008 01:16:57 -0500
Borneq 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.
Keep in mind that you don't need to parse *all* Pascal code. You're making a tool to help you maintain your library, so you really only need to parse *your* Pascal code.
How big are the differences between what the Delphi IDE expects and what the Lazarus IDE expects? Do those differences really require you to parse and rewrite large amounts of your code? Or are the changes smaller, more local?
How have other cross-product libraries solved this problem?
Overall, I see your proposed solution as overkill for the problem you describe. I would have envisioned a unit or two with conditional compilation to unify the differences between the two Pascal dialects, leaving the rest of your project alone. At worst, maybe a Perl script. Am I being too naive? Are the differences really that big?
Where I found good Delphi grammar?
http://dgrok.excastle.com/Grammar.html
--
Rob
.
- Follow-Ups:
- Re: Pascal analyzer - Yacc?
- From: Borneq
- Re: Pascal analyzer - Yacc?
- References:
- Pascal analyzer - Yacc?
- From: Borneq
- Pascal analyzer - Yacc?
- Prev by Date: Re: Delphi language support in CMake build system
- Next by Date: Re: Pascal analyzer - Yacc?
- Previous by thread: Re: Pascal analyzer - Yacc?
- Next by thread: Re: Pascal analyzer - Yacc?
- Index(es):
Relevant Pages
|