TIOSerializer
TIO uses very-specific format so this serializes things to work for it. This is a JS API so this handles all encoding.
Constructor Summary
Public Constructor | ||
public |
Serializer with empty state |
Method Summary
Public Methods | ||
public |
Writes a file to the data. |
|
public |
addRun() Should be placed last. |
|
public |
addVariable(name: string, data: string[] | data) Writes a variable to the data. |
|
public |
async serialize(): Uint8Array Serializes to a TIO-string the given instructions. |