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.
H
He
C
Fe
AuH_2
H_2O
H_2SO_4
C_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_2O
3H_2
10CO_2Leading digits followed by an element or open bracket.
Ca(OH)_2
(NH_4)_2SO_4
[Fe(CN)_6]Bracket variants (), [], {} are preserved through round-trip.
H-O-H
H_2C=CH_2
HC#CH
Re##Re
C>-H
C-<H
NH_3~>BF_3
A~~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
::O
Cl.
O=O..Prefix : for lone pairs; suffix . for radical electrons.
2H_2 + O_2 -> 2H_2O
HCl + NaOH -> NaCl + H_2O
N_2 + 3H_2 <=>[Fe][400°C] 2NH_3Four arrow kinds: forward ->, reverse <-, equilibrium <=>,
resonance <->. Conditions in [above][below] brackets.
Reaction reference →
A -> B -> C
2A -> 2B -> 2C
A <=>[Fe][T] B -> CMulti-step chains promote to a single ReactionCascade.
Cascade reference →
1s^2 2s^2
1s^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.