Parse Question
Posted: Thu Sep 04, 2008 6:27 pm
According to the manual when no str-break token is included in parse the function uses "newLISP's internal parsing rules". Are these described somewhere in the manual?
I've noticed some odd behavior with parse
> (parse {"john d"} " ")
("\"john" "d\"")
> (parse {"john d"})
("john d")
> (parse {john d})
("john" "d")
>
I was assuming a the break token was a space, but the last two examples are different.
I came across this when I tried to parse a single " without including an explicit str-break.
> (parse {"} " ")
("\"")
> (parse {"})
ERR: string token too long in function parse : ""
>
John
I've noticed some odd behavior with parse
> (parse {"john d"} " ")
("\"john" "d\"")
> (parse {"john d"})
("john d")
> (parse {john d})
("john" "d")
>
I was assuming a the break token was a space, but the last two examples are different.
I came across this when I tried to parse a single " without including an explicit str-break.
> (parse {"} " ")
("\"")
> (parse {"})
ERR: string token too long in function parse : ""
>
John