tinyactors expressions
List each chart's expressions and scripts with where they are.
Usage
tinyactors expressions [options] INPUT...Lists each chart's expressions and scripts: kind, line, column and text. 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.-k, --kind KINDKeep only the expressions ofKIND. Repeatable. Values:condition,value,location,script,string,content,item,global-script.
Configure output formats like -f json using the shared options on the command reference.
Examples
tinyactors expressions --kind condition order.scxml# Expressions
## Charts
### Chart 1: order
- **Name**: order
#### Expressions
| Index | Kind | Line | Column | Source |
| --- | --- | --- | --- | --- |
| 3 | condition | 8 | 5 | _event.data.price > 0 |
| 6 | condition | 11 | 5 | total > 0 |
| 9 | condition | 28 | 5 | `attempts < 3` |List the conditions of a chart.
tinyactors expressions -f xml order.tai<?xml version="1.0" encoding="UTF-8"?>
<expressions>
<charts>
<chart name="order">
<expressions>
<expression index="0" kind="value" line="3" column="5" source="0"/>
<expression index="1" kind="value" line="4" column="5" source="0"/>
<expression index="2" kind="value" line="5" column="5" source="null"/>
<expression index="3" kind="condition" line="8" column="5" source="_event.data.price > 0"/>
<expression index="4" kind="location" line="9" column="7" source="total"/>
<expression index="5" kind="value" line="9" column="7" source="total + _event.data.price"/>
<expression index="6" kind="condition" line="11" column="5" source="total > 0"/>
<expression index="7" kind="location" line="26" column="7" source="charge"/>
<expression index="8" kind="value" line="26" column="7" source="_event.data.charge"/>
<expression index="9" kind="condition" line="28" column="5" source="attempts < 3"/>
<expression index="10" kind="location" line="16" column="7" source="attempts"/>
<expression index="11" kind="value" line="16" column="7" source="attempts + 1"/>
<expression index="12" kind="value" line="18" column="9" source="total"/>
<expression index="13" kind="value" line="36" column="7" source="charge"/>
</expressions>
</chart>
<chart name="payment">
<expressions>
<expression index="0" kind="value" line="3" column="5" source="0"/>
</expressions>
</chart>
</charts>
</expressions>List the expressions of an image as XML.
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 pathFind the shortest path to a state: events, conditions and transitions.tinyactors graphDraw each chart, or list its boxes and edges.tinyactors disassembleList each chart's executable content instruction by instruction.tinyactors inspectShow what an image, a snapshot or a blob holds.