HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file util.compiler.TypeUtil by barry
expand copy to clipboardexpand
uses OpParser

interface TypeUtil {

	char[] typeCheck(OpToken op, DanaType types[])

	int getDataFieldIndex(DanaType t, char name[])
	
	DanaTypeField getDataField(DanaType t, char name[])
	
	DanaTypeField getDataFieldAt(DanaType t, int index)

	int getDataFieldCount(DanaType t)

	//this function is used by associative function scanning, to measure the distance between two types, in helping to select the closest-match
	// - this includes integer sizes
	int getTypeDistance(DanaType a, DanaType b, DanaType types[])

	int getFieldIndex(DanaType fromType, char fieldName[], DanaType types[])

	bool isSuperTypeOf(DanaType x, DanaType y, DanaType types[])
	
	}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n util.compiler.TypeUtil -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: New compiler components