tinyactors disassemble
List each chart's executable content instruction by instruction.
Usage
tinyactors disassemble [options] INPUT...Lists each chart's executable content as instructions: their place, the entry points starting there and their operands. Reads one image (.tai), one snapshot, one system manifest or SCXML charts, compiled together into one image first. --segment picks a snapshot's image, and - reads standard input.
Options
-W, --warnings-as-errorsRefuse a chart that compiles with a warning.-I, --include DIRSearchDIRfor a src that is not beside the file naming it, in the order given. Repeatable.-c, --chart NAMELook at the chart namedNAMEonly. Repeatable.-s, --segment NRead the image that segment N of a snapshot runs. Default: the newest live segment.
Configure output formats like -f json using the shared options on the command reference.
Examples
tinyactors disassemble --chart order order.tai# Disassemble
## Charts
### Chart 1: order
- **Name**: order
#### Instructions
| Pc | Label | Opcode | Operands |
| --- | --- | --- | --- |
| 0 | transition 0: open on item.added | block | to 5 |
| 2 | | assign | `total` = `total + _event.data.price` |
| 5 | | end | |
| 6 | transition 3: paying on charge.ok | block | to 11 |
| 8 | | assign | `charge` = `_event.data.charge` |
| 11 | | end | |
| 12 | onentry paying | block | to 21 |
| 14 | | assign | `attempts` = `attempts + 1` |
| 17 | | send | event charge to charges type payments |
| 19 | | send | event payment.timeout to itself after 30s |
| 21 | | end | |
| 22 | onexit paying | block | to 26 |
| 24 | | cancel | sendid deadline |
| 26 | | end | |Disassemble one chart of an image.
Exit status
1An input is refused: it does not compile or verify, or it is damaged or of an unknown format.3A file cannot be read or written, or memory runs out.
Related pages
tinyactors statesList each chart's states as a tree in document order.tinyactors transitionsList each chart's transitions with events, conditions and targets.tinyactors eventsList every event name and the transitions, raises and sends using it.tinyactors dataList each chart's data declarations.tinyactors expressionsList each chart's expressions and scripts with where they are.tinyactors pathFind the shortest path to a state: events, conditions and transitions.tinyactors graphDraw each chart, or list its boxes and edges.tinyactors inspectShow what an image, a snapshot or a blob holds.