Head towards https://devblogs.microsoft.com/commandline/microsoft-open-sources-gw-basic/ to learn more about why MS decided to Open Source GW – Basic.
Source Code: https://github.com/microsoft/GW-BASIC
Note: Source code is in Assembly language. Good luck!!