parse and colons?

Started by cormullion, November 21, 2007, 08:16:59 AM

Previous topic - Next topic

cormullion

What is parse supposed to do for colons?


> (parse {(define (fred jim) (println fred jim))})
("(" "define" "(" "fred" "jim" ")" "(" "println" "fred" "jim" ")"  ")")
> (parse {(define (fred:jim) (println fred jim))})
("(" "define" "(" "fred" "jim" ")" "(" "println" "fred" "jim" ")"  ")")


It appears to ignore them, even though it's supposed to use the newlisp internal parser when there are no options...

I know that the colon is enhanced for the latest release...

Lutz

#1
The colon if it follows directly after a symbol is not recognized as an extra token. You could preprocess the string replacing all ":" with a space before it.



Lutz

cormullion

#2
gotcha. Thanks!