Reaction mechanisms
A mechanism captures a multi-step reaction pathway with optional spectator ions.
Syntax
Section titled “Syntax”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).
Example: SN2 mechanism
Section titled “Example: SN2 mechanism”
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.
Example: multi-step
Section titled “Example: multi-step”
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.
Validation (v0.18+)
Section titled “Validation (v0.18+)”Each entry must have a : separator. Malformed entries raise
ParseError at parse time with the offending line number.
CML wire (v0.11+)
Section titled “CML wire (v0.11+)”Emits as <reaction> with <mechanism> child:
<reaction> <mechanism title="mechanism{...}" convention="asciichem:text"/></reaction>Future enhancement: structural <reactionStepList> with per-step
reaction elements.