Where do I get BAS source code
You can download source code using reference:
https://github.com/bablosoft/BAS