Improve convert-constants to handle dictionaries
authorIustin Pop <iustin@google.com>
Thu, 22 Dec 2011 16:32:15 +0000 (17:32 +0100)
committerIustin Pop <iustin@google.com>
Fri, 13 Jan 2012 13:16:09 +0000 (14:16 +0100)
commit8751c041562da72b2eb6588dd3c8a3b2043c06b1
tree9f690560892a523b0abcbe51928619098dc57347
parenta07343b2ac5693f5f0d5bc715806a0b9974b2440
Improve convert-constants to handle dictionaries

The two main drawbacks for convert-constants are the fact that it
can't handle sets/frozensets (mainly due to the fact that I don't know
how useful this would be to the Haskell code) and that it cannot
export dictionaries.

To fix the second case, the current patch changes the code to support
flattening (potentially nested) dictionaries into single name
space. Yes, this could generate conflicts, but they will be detected
at compile time.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
autotools/convert-constants