New file format name, minor changes and fixes.

This commit is contained in:
Adsooi 2021-03-14 18:28:53 +01:00
parent f63e86b78a
commit 620bdfc28c
8 changed files with 75 additions and 44 deletions

View file

@ -234,7 +234,7 @@ class Function extends ExecutableObject {
getReadableString() {
if(this.displayMode == 'application') {
return `${this.name}: ${this.definitionDomain} ${this.destinationDomain}\n ${' '.repeat(this.name.length)}x ⟼ ${this.expression.toString()}`
return `${this.name}: ${this.definitionDomain} ${this.destinationDomain}\n ${' '.repeat(this.name.length)}x ⟼ ${this.expression.toString()}`
} else {
return `${this.name}(x) = ${this.expression.toString()}\nD${Utils.textsub(this.name)} = ${this.definitionDomain}`
}