The GEDCOM standard is freely available at gedcom.io and you may find the source of the standard itself plus some code examples and tools in the GitHub of FamilySearch.
Please be aware that RootsMagic currently supports GEDCOM 5.5.1 and that there is no public roadmap to move to the newer 7th generation of the standard.