Skip to content
AsciiC6hem

Reaction mechanisms

A mechanism captures a multi-step reaction pathway with optional spectator ions.

mechanism{
label: reaction
label: reaction
spectator: ion1 ion2 ...
}

Each line is a key: value pair. Keys other than spectator are step labels (e.g. step1, step2).

Source Rendered
mechanism{
Install the asciichem gem to see this rendered.
step1: OH- + CH3Br -> CH3OH + Br-
Install the asciichem gem to see this rendered.
spectator: Na+
Install the asciichem gem to see this rendered.
}
Install the asciichem gem to see this rendered.
Source Rendered
mechanism{
Install the asciichem gem to see this rendered.
step1: A + B -> C
Install the asciichem gem to see this rendered.
step2: C -> D + E
Install the asciichem gem to see this rendered.
spectator: Na+ K+
Install the asciichem gem to see this rendered.
}
Install the asciichem gem to see this rendered.

Each entry must have a : separator. Malformed entries raise ParseError at parse time with the offending line number.

Emits as <reaction> with <mechanism> child:

<reaction>
<mechanism title="mechanism{...}" convention="asciichem:text"/>
</reaction>

Future enhancement: structural <reactionStepList> with per-step reaction elements.

Play