At 11:41 PM 11/18/99 +0100, you wrote:
>I've got a little parse problem. I try to parse something like
>a1=1, a2=2, a3=3, a4
>where a1 to a3 have to be present, a4 may or may not be there,


Two questions:
1. If we have a1= does the next digit have to be 1, or could we have:

a1=2, a2=3, a3=8 ...?

2. Are we limited to exactly a1..4 or can there also be a5 etc?

Elan

>it is unspecified, which is at which position, and they may be
>on subsequent lines, 

Do you need to know whose a(n) was associated with which value? Just the
values? Does the sequence in which the values occur matter?

>without the commas seperating them.
>
>Any ideas on how to best parse this, to get the values for a1 
>to a3 and the presence of a4, respectively? 

Aha, so probably the values can vary (see question 1). a4 you just want the
presence reported, or also what it evaluates to?

Elan

>
>
>thanks in advance
>
>Ingo
>
>--  _     .                                _
>ingo@)|_ /|  _| _  <We ARE all ONE   www._|_o _   _ ._ _  
>www./_|_) |o(_|(/_  We ARE all FREE> ingo@| |(_|o(_)| (_| 
>http://www.2b1.de/Rebol/                     ._|      ._|
>
>
>

Reply via email to