[Implemented] Regular Expressions

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

You get it .

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

A Compiler IS a Translator.

> A Compiler takes code written in a particular syntax
> and convert it to machine code instructions.

Who said that ??

>NASM is a compiler

No. NASM is called "Assembler".

>(in this special case also called an assembler)

Its not "also" called Assembler, its only called that.
But in general (theoretic), its also an Compiler because
it translate from one thing to another.

>because it creates machine code from assembler.

Assembly = the language
Assembler = the tool (the translator)

Since the beginning of computers and calculators
its named like that:
Assembly -> machine code = Assembler
Whatever -> Whatever = Compiler

@Fred:
As i said, the 1k init stuff isnt the big problem.
But i see it as a problem when all procedures are
included, also when they are not used.

@Franco:
> Well, actually I DON'T WANT TO KNOW THE INTERNALS.
> It's too much time consuming...

Thats your opinion, but please respect that there
are some (few) people out there that are interested
in the internals and in the LowLevel stuff.
Without this people you wouldnt have a Computer and
you wouldnt be here and program.

> I want to have a LIFE besides programming...
> (without a computer - there are other
> things to learn and to enjoy...)

Ohh... assembly coders dont have a life ??
Now, thats new to me...

cya,
...Danilo

(registered PureBasic user)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.
But i see it as a problem when all procedures are
included, also when they are not used.
with a previous compiler-pass a list with procedures and Calls can been generated.
Also the Declare Function is not needed if such a pass through the code were made.ITs a bit like a XREF-Tool.It can also been coded in Pure itselfs.
If there is some small time i will do it.


Its a long way to the top if you wanna .....CodeGuru
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

The GRETA Regular Expression Template Archive
http://research.microsoft.com/projects/greta/

Code: Select all

GRETA gives you all the power of Perl 5 regular expressions in your C++ applications.
These easy-to-use classes let you perform regular expression pattern matches on strings in C++.


Features include:

- Fast backtracking regular expression engine.
- Separately compiled patterns.
- Matches against C-style NULL-terminated strings, C++-sytle std::string's, or iterator ranges.
- Template on iterator type and syntax module.
- Supports Unicode.
- Syntax is encapsulated in easily customized/replaced modules. (Perl and POSIX syntax modules included.)
- Match balanced, nested tags with a recursive pattern. Great for HTML/XML/SOAP processing. 
- Many times faster than the .NET/ATL7 regex classes and the boost regex classes. 
cya,
...Danilo

(registered PureBasic user)
Post Reply