svn path=/trunk/mcs/; revision=14321
+2003-05-05 Jackson Harper <jackson@latitudegeo.com>
+
+ * ILParser.jay: Add labels to methods, add branching instructions.
+
2003-05-04 Jackson Harper <jackson@latitudegeo.com>
* ILParser.jay: Use new MiscInstr.ldstr for ldstr, add INSTR_Rs
| scope_block\r
| D_PARAM OPEN_BRACKET int32 CLOSE_BRACKET init_opt\r
| id COLON\r
+ {\r
+ codegen.CurrentMethodDef.AddLabel ((string) $1);\r
+ }\r
| seh_block\r
| instr\r
| sec_decl\r
| INSTR_I id /* Allow variable names */\r
| INSTR_I8 int64\r
{\r
- Console.WriteLine ($1);\r
+ \r
}\r
| INSTR_R float64\r
{\r
}\r
| INSTR_R OPEN_PARENS bytes CLOSE_PARENS\r
| INSTR_BRTARGET int32\r
+ {\r
+ \r
+ }\r
| INSTR_BRTARGET id\r
+ {\r
+ codegen.CurrentMethodDef.AddInstr (new BranchInstr ((BranchOp) $1,\r
+ codegen.CurrentMethodDef, (string) $2));\r
+ }\r
| INSTR_METHOD method_ref\r
+ {\r
+ \r
+ }\r
| INSTR_FIELD type type_spec DOUBLE_COLON id\r
| INSTR_FIELD type id\r
| INSTR_TYPE type_spec\r