x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Regular Expressions

fragenmensch Page Icon Posted 2005-12-02 3:42 PM
#
Avatar image of fragenmensch
Factorite (Elite)

Posts:
207
Location:
DE-DE
Status:
Hi!
I want to code a regexp interpreter for PocketC(as header file, so that all PocketC can use it).Is there any source code for PERL-compatible interpreters?

Marco
 Top of the page
chiark Page Icon Posted 2005-12-05 5:08 AM
#
Avatar image of chiark
H/PC Sensei

Posts:
1,330
Location:
North of England
Status:
I don't know of any right now, but from googling:
http://www.bzflag.org/doxygen/engine_8c-source.html

Hopefully someone might have more of a clue. Sorry!
 Top of the page
fragenmensch Page Icon Posted 2005-12-06 1:44 PM
#
Avatar image of fragenmensch
Factorite (Elite)

Posts:
207
Location:
DE-DE
Status:
urgh...that's too much for PocketC....

Marco
 Top of the page
goetter
goetter Page Icon Posted 2006-01-07 11:42 PM
#
Status:
The canonical Perl-compatible regexp library is PCRE, available at http://www.pcre.org. It's a substantial body of code, as you might expect from Perl compatibility. I wouldn't want to have to bring it up under PocketC.

I suggest that you forget about Perl compatibility (or even POSIX.2 compatibility), download the /old/ version of Spencer's regexp library from ftp://ftp.zoo.toronto.edu/pub/regexp.old.tar.Z, study it carefully, then try to bring it up in PocketC. While this code is hairy, it's still much simpler than more recent versions of the library.

Good luck.
Ben
 Top of the page
fragenmensch Page Icon Posted 2006-01-08 5:39 AM
#
Avatar image of fragenmensch
Factorite (Elite)

Posts:
207
Location:
DE-DE
Status:
Ah, thanks, but how do I unpack the .Z file under Win32?

Marco
 Top of the page
goetter
goetter Page Icon Posted 2006-01-08 9:06 PM
#
Status:
winzip, 7zip, or gunzip.exe %1 | tar.exe xvf -
 Top of the page
cmonex Page Icon Posted 2006-01-08 11:27 PM
#
Avatar image of cmonex
H/PC Oracle

Posts:
16,175
Location:
Budapest, Hungary
Status:
heck even a hpc2000 hpc can unpack .Z
 Top of the page
Jump to forum:
Seconds to generate: 0.140 - Cached queries : 62 - Executed queries : 9