Doh! Tweaking the XSchema for MOXI files
The original XSchema for a MOXI file needs three tweaks...
A version attribute is needed so that different versions of the Mynx compiler doing external semantic checks can be sure to work with a compatible external XML file -- the MOXI file. The version attribute needs to be a decimal number that is greater or equal to 1.0. (That is, if the revised version of the XSchema is 1.0 and not 1.1...).
In creating the original XSchema for a MOXI XML semantic information file, some information was missed. How did I realize I'd omitted information? As I'm implementing semantic checks, I'm implementing the semantic information stored in the traditional "symbol table" of a compiler. Part of the symbol table includes information stored about specific elements of a class -- such as superclasses, and a default method.
- Add version attribute
- Add default method tag
- Remove supers attribute
Version
A version attribute is needed so that different versions of the Mynx compiler doing external semantic checks can be sure to work with a compatible external XML file -- the MOXI file. The version attribute needs to be a decimal number that is greater or equal to 1.0. (That is, if the revised version of the XSchema is 1.0 and not 1.1...).
Default Method
Similar to a destructor tag, a default method tag needs to be incorporated into the XSchema. The default tag specifies the default method of the class, providing there is one in the class. The example syntax:<default method="doIt"/>
Supers Attribute
The supers attribute indicates the number of superclasses used by the class. This is redundant, as the clustering of information has a count attribute indicating the number of superclasses.Doh!
In creating the original XSchema for a MOXI XML semantic information file, some information was missed. How did I realize I'd omitted information? As I'm implementing semantic checks, I'm implementing the semantic information stored in the traditional "symbol table" of a compiler. Part of the symbol table includes information stored about specific elements of a class -- such as superclasses, and a default method.
Labels: Mynx MOXI XSchema


<< Home