The Table class will contain access functions taking either a code value (one of the Code enumerations) or an table entry index (which will be the internal value used in the program):
index(code) – return the table entry index for the code
code(index) – return the code for the table entry
type(index) – return the token type for the table entry
datatype(index) – return the associated data type for the table entry (if any)
multiple(index) – return whether the command supports multiple words/characters
There will also be a flags member in the TableEntry structure. Currently it is only used for the immediate command to indicate which argument forms that the command supports. The other entries will have the flags member set to Null (no flags set). This will probably be used later to indicate other conditions for the rest of the entries.
Friday, February 12, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)