Author: ankit
Date: 2006-01-16 02:48:48 -0500 (Mon, 16 Jan 2006)
New Revision: 55623
Modified:
trunk/mcs/ilasm/parser/ChangeLog
trunk/mcs/ilasm/parser/ILParser.jay
trunk/mcs/ilasm/scanner/ChangeLog
trunk/mcs/ilasm/scanner/ILTables.cs
Log:
In ilasm/scanner:
* ILTables.cs (keywords): Add 'uint', this is a native UIntPtr type.
In ilasm/parser:
* ILParser.jay (K_UINT): New token.
(type | K_NATIVE K_UINT): New.
Modified: trunk/mcs/ilasm/parser/ChangeLog
===================================================================
--- trunk/mcs/ilasm/parser/ChangeLog 2006-01-16 07:41:34 UTC (rev 55622)
+++ trunk/mcs/ilasm/parser/ChangeLog 2006-01-16 07:48:48 UTC (rev 55623)
@@ -1,3 +1,8 @@
+2006-01-16 Ankit Jain <[EMAIL PROTECTED]>
+
+ * ILParser.jay (K_UINT): New token.
+ (type | K_NATIVE K_UINT): New.
+
2006-01-15 Ankit Jain <[EMAIL PROTECTED]>
* ILParser.jay (method_decl): Add new "full" syntax specifying
overrides.
Modified: trunk/mcs/ilasm/parser/ILParser.jay
===================================================================
--- trunk/mcs/ilasm/parser/ILParser.jay 2006-01-16 07:41:34 UTC (rev 55622)
+++ trunk/mcs/ilasm/parser/ILParser.jay 2006-01-16 07:48:48 UTC (rev 55623)
@@ -355,6 +355,7 @@
%token K_FLOAT64
%token K_ERROR
%token K_UNSIGNED
+%token K_UINT
%token K_UINT8
%token K_UINT16
%token K_UINT32
@@ -1033,6 +1034,10 @@
{
$$ = new PrimitiveTypeRef
(PrimitiveType.NativeUInt, "System.UIntPtr");
}
+ | K_NATIVE K_UINT
+ {
+ $$ = new PrimitiveTypeRef
(PrimitiveType.NativeUInt, "System.UIntPtr");
+ }
;
bounds : bound
Modified: trunk/mcs/ilasm/scanner/ChangeLog
===================================================================
--- trunk/mcs/ilasm/scanner/ChangeLog 2006-01-16 07:41:34 UTC (rev 55622)
+++ trunk/mcs/ilasm/scanner/ChangeLog 2006-01-16 07:48:48 UTC (rev 55623)
@@ -1,3 +1,7 @@
+2006-01-16 Ankit Jain <[EMAIL PROTECTED]>
+
+ * ILTables.cs (keywords): Add 'uint', this is a native UIntPtr type.
+
2006-01-03 Ankit Jain <[EMAIL PROTECTED]>
* ILTokenizer.cs (ILTokenizer.idchars): Add ` to the list.
Modified: trunk/mcs/ilasm/scanner/ILTables.cs
===================================================================
--- trunk/mcs/ilasm/scanner/ILTables.cs 2006-01-16 07:41:34 UTC (rev 55622)
+++ trunk/mcs/ilasm/scanner/ILTables.cs 2006-01-16 07:48:48 UTC (rev 55623)
@@ -211,6 +211,7 @@
keywords ["float64"] = new ILToken
(Token.K_FLOAT64, "float64");
keywords ["error"] = new ILToken
(Token.K_ERROR, "error");
keywords ["unsigned"] = new ILToken
(Token.K_UNSIGNED, "unsigned");
+ keywords ["uint"] = new ILToken (Token.K_UINT,
"uint");
keywords ["uint8"] = new ILToken
(Token.K_UINT8, "uint8");
keywords ["uint16"] = new ILToken
(Token.K_UINT16, "uint16");
keywords ["uint32"] = new ILToken
(Token.K_UINT32, "uint32");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches