-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Now Eurydice might generate codes having a wrong order in the types. I.e., there might be cases:
typedef struct Option_hash { Option_hash_tags tag; InternalTyp f0; }But the internal type InternalTyp is defined below this type Option_hash.
This becomes obvious and troublesome to handle when translating large scale programs.
We suggest the following plan for handling type declarations:
- Firstly, collect all the possible types, and have them all declared forwardly;
- Then, we collect the actual type dependencies in the types and print the types in topological order by the dependency tree.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels