document operand behavior

This commit is contained in:
Mark Canlas 2020-08-26 01:16:02 -04:00
parent dfb7849353
commit 8b9828c63e

View File

@ -5,10 +5,16 @@ trait Operand[A] {
def toAddressLiteral(x: A): String
/**
* Suitable for comments
*/
def toShow(x: A): String
def operandType: OperandType
/**
* The value as presented in a `define` declaration (i.e. where no alias is possible)
*/
def toDefinitionLiteral(x: A): String
}