Skip to content

Commit e4c039e

Browse files
committed
start on toString
1 parent 15ce977 commit e4c039e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

language.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ namespace microcode {
278278
defn.fixup()
279279
return defn
280280
}
281+
282+
public toString() {
283+
return ""
284+
}
281285
}
282286

283287
export class PageDefn {
@@ -329,6 +333,10 @@ namespace microcode {
329333
br.readByte()
330334
return defn
331335
}
336+
337+
public toString() {
338+
return ""
339+
}
332340
}
333341

334342
export function PAGE_IDS() {
@@ -379,6 +387,11 @@ namespace microcode {
379387
br.readByte()
380388
return defn
381389
}
390+
391+
public toString() {
392+
const res = this.pages.map(page => page.toString())
393+
return res.map((ps, i) => `Page ${i + 1}\n${ps}`).join("\n")
394+
}
382395
}
383396

384397
function mkConstraints(): Constraints {

0 commit comments

Comments
 (0)