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

2013-03-22 Thread Reinier Olislagers
On 23-3-2013 4:25, S. Fisher wrote: > --- On Fri, 3/22/13, Mattias Gaertner wrote: >> From: Mattias Gaertner >> Subject: Re: [fpc-pascal] Re: Example: regular expressions and "hash-tables" >> To: fpc-pascal@lists.freepascal.org >> Date: Friday, March 22, 2013, 4:11 AM >> On Fri, 22 Mar 2013 01:19

[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

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

2013-03-22 Thread S. Fisher
--- On Fri, 3/22/13, Mattias Gaertner wrote: > From: Mattias Gaertner > Subject: Re: [fpc-pascal] Re: Example: regular expressions and "hash-tables" > To: fpc-pascal@lists.freepascal.org > Date: Friday, March 22, 2013, 4:11 AM > On Fri, 22 Mar 2013 01:19:17 -0700 > (PDT) > "S. Fisher" > wrote:

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 > I didn't see a DEB pa

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] 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 improv

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 g

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 gr

[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. https://github.com/gra

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 d

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 > Am 22.03.2013 08:13, schrieb Xiangrong Fang: > > 2013/3/22 Sven Barth > > >> > The problem is gone, because PNode is not a generic class, but only a >> record.

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" wrote: > --- On Thu, 3/21/13, Reinier Olislagers wrote: > > > From: Reinier Olislagers > > Subject: [fpc-pascal] Re: Example: regular expressions and "hash-tables" > > To: "FPC Mailing list" > > Date: Thursday, March 21, 2013, 5:35 AM > > O

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 > > 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. Gen

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

2013-03-22 Thread S. Fisher
--- On Wed, 3/20/13, S. Fisher 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 ) then begin s

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

2013-03-22 Thread S. Fisher
--- On Thu, 3/21/13, Reinier Olislagers wrote: > From: Reinier Olislagers > Subject: [fpc-pascal] Re: Example: regular expressions and "hash-tables" > To: "FPC Mailing list" > Date: Thursday, March 21, 2013, 5:35 AM > On 21-3-2013 2:14, S. Fisher wrote: > > Not actually a hash-table, but an Avg

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 wrote: > --- On Thu, 3/21/13, kyan 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. :) ___ fpc-pascal mai

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] Re: Use generic class as parameter (was: how to write enumerator for trees)

2013-03-22 Thread Xiangrong Fang
2013/3/22 Sven Barth > > 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 them were to invasive t