Hi, All,
I encounter some troubles when try to embedded action code with generic type
in C#. Here is my case:
list: LIST_TYPE { var _list = new List<$LIST_TYPE.text>(); }
;
My purpose here is getting generic type from LIST_TYPE, and create a generic
list, such as List<string>, List<int> and so on. However, $LIST_TYPE.text
returns a string value, which makes compile failed. Any suggestion?
--
Han kai
"To iterate is human, to recurse divine." - L. Peter Deutsch
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.