Re: [fpc-pascal] Access to compiler's internal data structures

2012-10-28 Thread 印場 乃亜
Hi, I am sure the ones included in FCL are much fancier and know OOP, etc. I have a relatively primitive one used here too: https://github.com/GalapagosAdmin/PasViz I just use it for analyzing unit dependencies, so I don't need too many fancy features. Also, I didn't write the parser, and it

Re: [fpc-pascal] Access to compiler's internal data structures

2012-09-02 Thread Michael Van Canneyt
On Sun, 2 Sep 2012, Kenneth Cochran wrote: My goal is to make it an IDE expert so the CodeTools parser sounds ideal. Just didn't want to reinvent the wheel. I also wanted to avoid the problem Delphi has been plagued with for years, that is, CodeInsight flagging code with syntax errors that

Re: [fpc-pascal] Access to compiler's internal data structures

2012-09-02 Thread Kenneth Cochran
My goal is to make it an IDE expert so the CodeTools parser sounds ideal. Just didn't want to reinvent the wheel. I also wanted to avoid the problem Delphi has been plagued with for years, that is, CodeInsight flagging code with syntax errors that the compiler readily accepts because they use diffe

Re: [fpc-pascal] Access to compiler's internal data structures

2012-09-01 Thread Sven Barth
On 01.09.2012 12:05, Sven Barth wrote: On 31.08.2012 20:48, Kenneth Cochran wrote: First I'll say I know very little about the inner workings of an actual compiler. I took a course on formal language theory ages ago so I do have some understanding of the theory. Lately my interests have been pul

Re: [fpc-pascal] Access to compiler's internal data structures

2012-09-01 Thread Sven Barth
On 31.08.2012 20:48, Kenneth Cochran wrote: First I'll say I know very little about the inner workings of an actual compiler. I took a course on formal language theory ages ago so I do have some understanding of the theory. Lately my interests have been pulling me toward projects that either bene

Re: [fpc-pascal] Access to compiler's internal data structures

2012-09-01 Thread Michael Van Canneyt
On Fri, 31 Aug 2012, Kenneth Cochran wrote: First I'll say I know very little about the inner workings of an actual compiler. I took a course on formal language theory ages ago so I do have some understanding of the theory. Lately my interests have been pulling me toward projects that either

Re: [fpc-pascal] Access to compiler's internal data structures

2012-09-01 Thread Bernd
2012/8/31 Kenneth Cochran : > I'm finding myself in need of a parser for object pascal. I'm wondering if > fpc exposes any of the output (syntax trees, graphs, etc) from the parser > that could be consumed by an external tool? Depending on what exactly you need and how difficult it is to get a sy

Re: [fpc-pascal] Access to compiler's internal data structures

2012-09-01 Thread Graeme Geldenhuys
On 31/08/12 19:48, Kenneth Cochran wrote: So I'm finding myself in need of a parser for object pascal. The FPC compiler has it's own built-in parser that is optimised for its needs. There is a more general purpose object pascal compiler included in FCL (part of FPC too), in the 'fcl-passrc' d

[fpc-pascal] Access to compiler's internal data structures

2012-09-01 Thread Kenneth Cochran
First I'll say I know very little about the inner workings of an actual compiler. I took a course on formal language theory ages ago so I do have some understanding of the theory. Lately my interests have been pulling me toward projects that either benefit from or depend on static analysis. So I'm