Class: AsciiChem::Linter::BalanceCheck
- Defined in:
- lib/asciichem/linter/balance_check.rb
Overview
Verifies that a reaction is stoichiometrically balanced — the atom counts on the reactants side equal those on the products side. Coefficients and group multiplicities are applied.
The check ignores electrons (e^-), conditions, and the arrow
kind. It treats unknown constructs conservatively: any molecule
it can't enumerate atoms for is skipped, not flagged.