Re: [fpc-pascal] Re: Editing resource of executable

2012-09-01 Thread waldo kitty
On 9/1/2012 02:56, Mark Morgan Lloyd wrote: waldo kitty wrote: Of course, an even safer way would be to leave the executable alone and to put an early check in the startup code that a subsidiary key file existed, and for that key to include something that identified the machine or site on which

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] Re: Identifier not found "result"

2012-09-01 Thread Sven Barth
On 31.08.2012 12:12, Mark Morgan Lloyd wrote: Rainer Stratmann wrote: Am Friday 31 August 2012 11:23:49 schrieb Mark Morgan Lloyd: Rainer Stratmann wrote: Am Friday 31 August 2012 10:38:32 schrieb Mark Morgan Lloyd: FPC is mature in terms of age, mature in terms of stability, and mature in te

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] Editing resource of executable

2012-09-01 Thread Rainer Stratmann
Am Wednesday 29 August 2012 23:46:55 schrieb Krzysztof: > I have some problem. Example: > > I created some exec using free pascal and lazarus. It is placed on > http server. User in webbrowser click download, and server should > attach link from where it is clicked into this exec. So when user run

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

Re: [fpc-pascal] Resource compiler under Linux - windres?

2012-09-01 Thread Graeme Geldenhuys
On 01/09/12 09:24, Giulio Bernardi wrote: Just compiling windres from binutils sources should be enough. Thanks, I did that and it worked fine. Graeme. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailm

Re: [fpc-pascal] Resource compiler under Linux - windres?

2012-09-01 Thread Giulio Bernardi
Just compiling windres from binutils sources should be enough. The only problem I remember from past experience is that windres is not endian safe, but if you use it on little endian machines it works just fine. A simple way to have windres is: download binutils from http://ftp.gnu.org/gnu/binut

Re: [fpc-pascal] Resource compiler under Linux - windres?

2012-09-01 Thread Ludo Brands
> Does anybody know if there is a 'winres' for non-Windows > platforms? How > do I compile *.rc files into *.res files under Linux, FreeBSD etc? Or > does Linux/*BSD executables simply not support such resources? > Windres for linux can be found in the cross binutils for windows. When installed

[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