G
Gareth
Don't know if this is the place to ask but..
I am writing a compiler for .net as a way of learning about how
the .net languages and the CLR work and I am confused about how
references and namespaces work with the Emit namespace. I am trying
to parse the using and namespace keywords and I am not sure how these
are handled using the Emit classes.
When parsing things like expressions I can see from MSDN that I use
the ILGenerator to emit opcodes for load integer and add etc, but I
haven't found much material on there on how to deal with namespaces
and references/qualified names etc. There isn't anything like a
NamespaceBuilder to match the AssemblyBuilder class!!
Any pointers or useful links would be greatly appreciated!
Many thanks,
G
I am writing a compiler for .net as a way of learning about how
the .net languages and the CLR work and I am confused about how
references and namespaces work with the Emit namespace. I am trying
to parse the using and namespace keywords and I am not sure how these
are handled using the Emit classes.
When parsing things like expressions I can see from MSDN that I use
the ILGenerator to emit opcodes for load integer and add etc, but I
haven't found much material on there on how to deal with namespaces
and references/qualified names etc. There isn't anything like a
NamespaceBuilder to match the AssemblyBuilder class!!
Any pointers or useful links would be greatly appreciated!
Many thanks,
G