private CompiledReplacementRule GetCompiledReplacementRule(RawReplacementRule replacementRule) { int moleculeID = moleculeIDs.GetID(replacementRule.Molecule); var replacementString = GetMoleculeString(replacementRule.Replacement); return(new(moleculeID, replacementString)); }
private void RegisterMolecules(RawReplacementRule rule) { RegisterMolecules(rule.Molecule); RegisterMolecules(rule.Replacement); }