Hi,
{ ^-^/}
Ceci une chaine contenant trois caract�res:
This is a string containing three characters:
1) a space
2) a tab
3) a newline
The /all refinement of parse directs parse to
consider all characters, including whitespaces.
See the help for parse.
Anton.
> Can you give more explanation about the boilerplate.
> I believe that gap is not a refinement of parse but I don't really
> understand the link between the boilerplate and the parse command
> : how can
> Rebol use the whitespace definition into parse ... ???
> :-O
>
> -----Message d'origine-----
> De : Joel Neely [mailto:[EMAIL PROTECTED]]
> Envoy� : mardi 16 avril 2002 14:21
> � : [EMAIL PROTECTED]
> Objet : [REBOL] Re: My function seems to have no effect
>
>
> Hi, Richard,
>
> In that case...
>
> COFFRE Richard FTO wrote:
> >
> > Hi Joel,
> >
> > Indeed, the lines I need to "clean" look like
> > Call ("GetOCode:initData")
> > where I need to delete "Call ("" and the final ").
> >
>
> Some sample data:
>
> bletch: {
> Call ("Get0Code:initData")
> call ("TestFunc:blahblah")
> call("Quux:flarp") call("Quux:spoo")
> call ( "Layout:spaceObsessively" ) CALL ( "The:end" )
> }
>
> Some generic boilerplate:
>
> whitespace: charset { ^-^/} gap: [any whitespace]
>
> The real work happens here:
>
> parse/all bletch [
> any [
> {call} gap {(} gap {"} copy fn to {"} {"} gap {)} (
> print fn
> )
> |
> skip
> ]
> ]
>
> This produces the following output:
>
> Get0Code:initData
> TestFunc:blahblah
> Quux:flarp
> Quux:spoo
> Layout:spaceObsessively
> The:end
>
> You can, of course, do something inside the parens more interesting
> than just print out to the console...
>
> HTH!
>
> -jn-
>
> --
> ; Joel Neely joeldotneelyatfedexdotcom
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.