Skip to content

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{ step1: OH- + CH3Br -> CH3OH + Br- spectator: Na+ }
mechanism step1 OH- + CH3Br -> CH3OH + Br- spectator Na+
Source Rendered
mechanism{ step1: A + B -> C step2: C -> D + E spectator: Na+ K+ }
mechanism step1 A + B -> C step2 C -> D + E spectator Na+ spectator K+

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