Re: [fpc-pascal] TPLY

2010-10-27 Thread Thierry Coq
Hello Brian, Yes, please send the diff file, so I can look at it. Which platform (Windows, Linux, FPC) are you using? Another approach would be to look at (and reverse engineer) the byte code. If it's not obfuscated, it might even be easier to parse and port than the native Java. On 27/10/

[fpc-pascal] Changes in fcl-web

2010-10-27 Thread leledumbo
Where do these methods go? protected function TCustWebApplication.WaitForRequest(out ARequest : TRequest; out AResponse : TResponse) : boolean; protected procedure TCustWebApplication.EndRequest(ARequest : TRequest;AResponse : TResponse); protected procedure TCustWebApplication.DoHandleRequest(AR

[fpc-pascal] Re: TPLY

2010-10-27 Thread leledumbo
Learn compilation technique, a recursive descent parser should be easy to understand and code instead of learning automatic lexer and parser generator. Plus, structurally, Java is a very simple language, so AST transformation should be easy. With FPC 2.5.1, almost all Java constructs can be direct

Re: [fpc-pascal] TPLY

2010-10-27 Thread Brian Winfrey
On Wed, Oct 27, 2010 at 9:21 AM, Brian Winfrey wrote: >> there is a port to Lazarus here: >> >> http://www.tcoq.org/ >> >> with some examples. I can help you if needed. The documentation is quite >> complete. > > Thanks it looks interesting, I like the component approach, I will > take a close loo

[fpc-pascal] Re: detecting c's calling convention

2010-10-27 Thread leledumbo
> I don't know what msvc uses by default. It's cdecl as well. The fast call is an option. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/detecting-c-s-calling-convention-tp3238344p3238776.html Sent from the Free Pascal - General mailing list archive at Nabble.

Re: [fpc-pascal] detecting c's calling convention

2010-10-27 Thread Henry Vermaak
On 27/10/10 09:31, ik wrote: Hello All, I'm going to bind a SIP library called sofia-sip , it is an open source (LGPL) cross platform SIP library from Nokia. Because the binding I'm going to make will also have to work under Windows, I must know how to detect w

[fpc-pascal] Re: detecting c's calling convention

2010-10-27 Thread leledumbo
> Because the binding I'm going to make will also have to work under Windows, I must know how to detect > what is the calling convention in the Windows compilation side. > In theory it can be stdcall, but how can I make sure of it ? It's open source, just open up the header files. -- View this m

[fpc-pascal] detecting c's calling convention

2010-10-27 Thread ik
Hello All, I'm going to bind a SIP library called sofia-sip, it is an open source (LGPL) cross platform SIP library from Nokia. Because the binding I'm going to make will also have to work under Windows, I must know how to detect what is the calling convention in

Re: [fpc-pascal] TPLY

2010-10-27 Thread Thierry Coq
Hello Brian, there is a port to Lazarus here: http://www.tcoq.org/ with some examples. I can help you if needed. The documentation is quite complete. Translating the whole Java language would be very difficult, but translating only the structure could be done. You would need to write a gram