Re: [fpc-pascal] Re: Use generic class as parameter (was: how to write enumerator for trees)

2013-03-22 Thread Sven Barth
Am 22.03.2013 02:32 schrieb Xiangrong Fang xrf...@gmail.com: Hi, I missed the key point. This bug should be fixed in 2.7.1, but I am now using 2.6.0. Now there is another problem: If I change my code to this: TTreapEnumerator = class FStack: TStack; FCurrent:

[fpc-pascal] Res: Amazon S3

2013-03-22 Thread silvioprog
I sent an end answer in issue about S3: https://github.com/silvioprog/brookframework/issues/14 Sorry for my delays in answer please. -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc-pascal maillist -

Re: [fpc-pascal] Re: Use generic class as parameter (was: how to write enumerator for trees)

2013-03-22 Thread Xiangrong Fang
2013/3/22 Sven Barth pascaldra...@googlemail.com The problem is gone, because PNode is not a generic class, but only a record. However, the following errors are generated: 2.6.x does not support nested types in generics. Generic fixes and improvements are only found in 2.7.1 as most of

Re: [fpc-pascal] Amazon S3

2013-03-22 Thread Michael Schnell
On 03/21/2013 11:58 AM, Sven Barth wrote: Ehm... you do know that Amazon S3 Samsung Galaxy S3? Amazon S3 is the cloud storage solution by Amazon. See also: http://en.wikipedia.org/wiki/Amazon_S3 If you see both, you can easily tell them apart :-) :-) -Michael

Re: [fpc-pascal] How To write an enumerator for trees

2013-03-22 Thread kyan
On Fri, Mar 22, 2013 at 12:39 AM, S. Fisher expandaf...@yahoo.com wrote: --- On Thu, 3/21/13, kyan alfasud...@gmail.com wrote: Are you the man who created Kyan Pascal? I used that many years ago. I'd never heard of it till now. I wish. I'm nowhere nearly that good. :)

Re: [fpc-pascal] Re: Example: regular expressions and hash-tables

2013-03-22 Thread S. Fisher
--- On Thu, 3/21/13, Reinier Olislagers reinierolislag...@gmail.com wrote: From: Reinier Olislagers reinierolislag...@gmail.com Subject: [fpc-pascal] Re: Example: regular expressions and hash-tables To: FPC Mailing list fpc-pascal@lists.freepascal.org Date: Thursday, March 21, 2013, 5:35 AM

Re: [fpc-pascal] Example: regular expressions and hash-tables

2013-03-22 Thread S. Fisher
--- On Wed, 3/20/13, S. Fisher expandaf...@yahoo.com wrote: The program reads a text file and counts the number of unique words, and also displays the number of times the most common word was found. Added an iterator of sorts for regular expressions. This allows if re.exec( line )

Re: [fpc-pascal] Re: Use generic class as parameter (was: how to write enumerator for trees)

2013-03-22 Thread Sven Barth
Am 22.03.2013 08:13, schrieb Xiangrong Fang: 2013/3/22 Sven Barth pascaldra...@googlemail.com mailto:pascaldra...@googlemail.com The problem is gone, because PNode is not a generic class, but only a record. However, the following errors are generated: 2.6.x does not support

Re: [fpc-pascal] Re: Example: regular expressions and hash-tables

2013-03-22 Thread Mattias Gaertner
On Fri, 22 Mar 2013 01:19:17 -0700 (PDT) S. Fisher expandaf...@yahoo.com wrote: --- On Thu, 3/21/13, Reinier Olislagers reinierolislag...@gmail.com wrote: From: Reinier Olislagers reinierolislag...@gmail.com Subject: [fpc-pascal] Re: Example: regular expressions and hash-tables To: FPC

Re: [fpc-pascal] Re: Use generic class as parameter (was: how to write enumerator for trees)

2013-03-22 Thread Xiangrong Fang
I didn't see a DEB package for 2.7.1. I am currently using 2.6.0. Can I compile 2.7.1 from source with 2.6.0? 2013/3/22 Sven Barth pascaldra...@googlemail.com Am 22.03.2013 08:13, schrieb Xiangrong Fang: 2013/3/22 Sven Barth pascaldra...@googlemail.com The problem is gone, because PNode

Re: [fpc-pascal] Re: Use generic class as parameter (was: how to write enumerator for trees)

2013-03-22 Thread Sven Barth
Am 22.03.2013 10:14, schrieb Xiangrong Fang: I didn't see a DEB package for 2.7.1. I am currently using 2.6.0. Can I compile 2.7.1 from source with 2.6.0? Yes. In fact you MUST compile with 2.6.0 (or 2.6.2). Go to the directory of your 2.7.1 source and execute make all. If your test code

[fpc-pascal] Object Pascal Grammar in EBNF like style

2013-03-22 Thread Graeme Geldenhuys
Hi, I'm putting together a EBNF like syntax [not strictly EBNF] for the Object Pascal grammar, as implemented by Free Pascal, using the {$mode objfpc} compiler mode. I'm basing the work on FPC 2.6.2 (latest released compiler). The Object Pascal grammar starts at line 5374.

Re: [fpc-pascal] Object Pascal Grammar in EBNF like style

2013-03-22 Thread Sven Barth
Am 21.03.2013 19:42, schrieb Graeme Geldenhuys: Hi, I'm putting together a EBNF like syntax [not strictly EBNF] for the Object Pascal grammar, as implemented by Free Pascal, using the {$mode objfpc} compiler mode. I'm basing the work on FPC 2.6.2 (latest released compiler). The Object Pascal

Re: [fpc-pascal] Object Pascal Grammar in EBNF like style

2013-03-22 Thread Michael Van Canneyt
On Thu, 21 Mar 2013, Graeme Geldenhuys wrote: Hi, I'm putting together a EBNF like syntax [not strictly EBNF] for the Object Pascal grammar, as implemented by Free Pascal, using the {$mode objfpc} compiler mode. I'm basing the work on FPC 2.6.2 (latest released compiler). The Object Pascal

Re: [fpc-pascal] Object Pascal Grammar in EBNF like style

2013-03-22 Thread Graeme Geldenhuys
On 2013-03-22 12:22, Sven Barth wrote: * Type Helpers If you base the work on 2.6.2 then type helpers don't apply (only record and class helpers). Good to know, thanks. Regarding generic syntax not much has changed in mode objfpc since 2.6 was branched (only Delphi mode was improved

Re: [fpc-pascal] Object Pascal Grammar in EBNF like style

2013-03-22 Thread Graeme Geldenhuys
On 2013-03-22 13:29, Michael Van Canneyt wrote: That looks dangerously much, almost verbatim, like the appendix A of the Delphi language guide as found in the D7 manual. Umm, I don't have the Delphi manuals, but I do have the Kylix 3 manuals. I see what you mean. I didn't copy it from the

Re: [fpc-pascal] Re: Use generic class as parameter (was: how to write enumerator for trees)

2013-03-22 Thread Xiangrong Fang
Hi Sven, My unite uses contnrs unit, how can I instruct the compiler to use the contnrs unit (also the Classes and sysutils units) of v2.7.1? I have already built 2.7.1 and now try to compile my program in the fpc source dir as you told. Thanks 2013/3/22 Xiangrong Fang xrf...@gmail.com I

[fpc-pascal] HMAC_SHA1 and FPC

2013-03-22 Thread silvioprog
Hello, How to get HMAC_SHA1 using native functions of FPC? HMAC_SHA1: http://en.wikipedia.org/wiki/Hash-based_message_authentication_code#Examples_of_HMAC_.28MD5.2C_SHA1.2C_SHA256.29 Thank you! -- Silvio Clécio My public projects - github.com/silvioprog