Per-construct detail
Each syntax page has worked examples and round-trip behaviour. Start with Atoms.
AsciiChem is plain ASCII chemistry. Every construct is something a chemist can type on a standard keyboard. This page is the tour: every construct, one example each, links to the detail pages.
HHeCFeUueH_2H_2OH_2SO_4C_6H_12O_6Multi-character subscripts use braces: H_{2a}.
^14C^131I^238UThe prefix binds to the following atom. Why this matters →
Ca^2+Cl^-SO_4^2-Fe^3+IUPAC canonical form: number-then-sign. +2 is normalised to 2+.
Fe^(II)Fe^(III)Mn^(VII)Roman numerals in parens.
2H_2O3H_210CO_2Leading digits followed by an element or open bracket.
Ca(OH)_2(NH_4)_2SO_4[Fe(CN)_6]^4-Bracket variants (), [], {} are preserved through round-trip.
H-O-HH_2C=CH_2HC#CHRe##ReC>-HC-<HNH_3~>BF_3A~~BEight kinds: single, double, triple, quadruple, wedge, hash, dative, wavy. Bond reference →
(R)-CH_3(S)-CH(OH)COOH(E)-CH=CH(Z)-A=B(alpha)-C(β)-CMarkers attach to molecules. Greek alpha/beta typed words are
accepted alongside α/β. Stereo reference →
:O::OCl.O=O..Prefix : for lone pairs; suffix . for radical electrons.
2H_2 + O_2 -> 2H_2OHCl + NaOH -> NaCl + H_2ON_2 + 3H_2 <=>[Fe][400°C] 2NH_3Four arrow kinds: forward ->, reverse <-, equilibrium <=>,
resonance <->. Conditions in [above][below] brackets.
Reaction reference →
A -> B -> C2A -> 2B -> 2CA <=>[Fe][T] B -> CMulti-step chains promote to a single ReactionCascade.
Cascade reference →
1s^2 2s^21s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10Two or more orbital^occupancy pairs.
`K_c = [P]/[R]``x^2 + y^2``rate = k[A]^2[B]`Backtick-delimited runs are parsed by Plurimath. Embedded math reference →
Real chemistry mixes everything:
^14C_6H_12O_6 + 6O_2 -> 6CO_2 + 6H_2O `Delta G = -2870 kJ/mol`A radioactive glucose combustion with embedded thermodynamics.
Per-construct detail
Each syntax page has worked examples and round-trip behaviour. Start with Atoms.
The model
Every construct maps to a model class. See The model for the layer diagram and per-class reference.
Round-trip conformance
The Text formatter is the canonicaliser. See Round-trip conformance.
IUPAC mapping
Every construct’s spelling traced to its IUPAC source. See IUPAC mapping.