Parser recognizes the following tokens:
- _123 -> Number
- _REG -> All registers
- _REGADDR -> All 32-bit registers
- 1 -> Number as well
- _ABC -> Random label, used indirectly (ie, used as a field)
- #_ABC -> Random label, used for the value (ie, pointer to the field)
This class is able to translate a single X# source code line into one or more target assembler source code and data lines. The class is a group of pattern each of which defines a transformation function from the X# syntax to the target assembler syntax.
Describe a single pattern with its list of tokens that might include pattern reserved syntax token and a transformation function. For ease of search and performance an hashcode value is computed on the tokens list content and later used for searching a pattern matching an actual line of X# code source.