S-expressions: Difference between revisions

m
no edit summary
(implement prototype in pike)
mNo edit summary
Line 6:
The reader should read a single but nested S-Expression from a string and store it in a suitable datastructure (list, array, etc). Newlines and other whitespace may be ignored unless contained within a quoted string. () inside quoted strings are not interpreted, but treated as part of the string. Handling escaped quotes inside a string is optional. thus (foo"bar) maybe treated as a string 'foo"bar', or as an error.
 
Languages that support thisit may treat unquoted strings as symbols.
 
The reader should be able to read the following input
Anonymous user