[REBOL] Re: 'Parse is peculiar! - more details
From: emptyhead:home:nl at: 14-Dec-2000 12:32
Because the game doesn't check the characters being inserted in the name the grammar
of
the logfile is not correct and not parseable thru a left to right parser. (not with this
'parse function).
This works fine if the plater does not have a name with the string {>"}
r-tag: [ ">" thru "<" ]
parse line [
thru {"} copy name thru {>"}
(
; parse the name in reverse.
reverse name
parse name [
{"}
copy won r-tag
copy num r-tag
copy name to end
(reverse name reverse won reverse num)
]
) to end
]
You can add more rules to parse the ip-numer and date.
Daan Oosterveld
Shannon Baker schreef: