S-expressions: Difference between revisions

Content added Content deleted
mNo edit summary
Line 22: Line 22:
=={{header|Pike}}==
=={{header|Pike}}==
this version doesn't yet handle int and float and it doesn't remove unneeded quotes from simple strings
this version doesn't yet handle int and float and it doesn't remove unneeded quotes from simple strings
<lang pike>string input = ((data \"quoted data\" 123 4.5)\n (data (123 (45) \"(more\" \"data)\")))";
<lang pike>string input = "((data \"quoted data\" 123 4.5)\n (data (123 (45) \"(more\" \"data)\")))";


array tokenizer(string input)
array tokenizer(string input)