patrickt / pony

A source-to-source transformer for C99, written in Haskell.
Other
5 stars 0 forks source link

Look into using newtypes to codify the various roles of CDeclarations #37

Closed patrickt closed 13 years ago

patrickt commented 13 years ago

If we did something like this:

newtype TypeName = TypeName CDeclaration
newtype Parameter = Parameter CDeclaration
newtype Variable = Parameter CDeclaration

It would more clearly indicate the role of declarations in the AST.

patrickt commented 13 years ago

Implemented in 615def4b7ea89dde89b9.