Well TeX is Turing-complete, so any computable program can be written and executed using TeX. Back in the '80s, there was an MIT undergrad named Andrew Marc Greene who wrote a BASIC interpretter in TeX (BaSiX—https://www.ctan.org/tex-archive/macros/generic/basix).