Code: Select all
newLISP v.8.7.0 on linux, execute 'newlisp -h' for more info.
> (parse "\"")
string token too long in function parse : "\" \007\008x2\007\008\001"
> (parse "\"abc\"")
("abc")
>
I trying to make function to read un-evaluated s-expression.
If parse's internal tokenizer will include double quotes where they are found in tokens, then quite good read function will be as small as 13 lines (in my version).
Either, imho, it's good when things like 'parse' will have the universal rather than special behavior. I.e., in case of 'parse' it's easy to strip quotes when they are unwanted, but pretty unavailable to restore them when they are already stripped.