Appendix A

image

ILAsm Grammar Reference

Lexical Tokens

ID - C style alphanumeric identifier (e.g., Hello_There2)DOTTEDNAME - Sequence of dot-separated IDs (e.g., System.Object)QSTRING  - C style quoted string (e.g.,  "hi\n")SQSTRING - Single-quoted string(e.g.,  'hi')INT32    - C style 32-bit integer (e.g.,  235,  03423, 0x34FFF)INT64    - C style 64-bit integer (e.g.,  -2353453636235234,  0x34FFFFFFFFFF)FLOAT64  - C style floating point number (e.g.,  -0.2323, 354.3423, 3435.34E-5)INSTR_*  - IL instructions of a particular class (see opcode.def)HEXBYTE  - 1- or 2-digit hexadecimal number (e.g., A2, F0)

ILAsm keywords are in bold (e.g., .class, valuetype ...

Get .NET IL Assembler now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.