Yuzu is a discontinued free and open-source emulator of the Nintendo Switch, developed in C++. Yuzu was announced to be in development on January 14, 2018, 10 months after the release of the Nintendo Switch. From Wikipedia
Nintendo's Koji Nishiura explains that emulators are not inherently illegal but can violate copyright laws depending on their functionality and use.