Talk:S-expressions

From Rosetta Code
Revision as of 10:48, 16 October 2011 by rosettacode>Ledrug (Symbols and strings)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Symbols and strings

To be more generally useful, it's probably better to distinguish between quoted and unquoted strings instead of giving numbers special treatment. 0x1, 1d0, 13#4bc, 1.3f, 1_000 may or may not be parsed as numbers depending on what the definition of literal numbers is, and can be deferred to a separate step -- as long as the parse remembers that they are not quoted. On the other hand, it's more likely than not that "data" and data mean completely different things, so the parser better remember that information instead of making it optional. --Ledrug 10:48, 16 October 2011 (UTC)