Anyhow, if the flag that indicates that the vyxal encoding is present, flow moves to encoding.py
In there, the file is converted from raw bytes to utf8
(I stole the algorithms from 05ab1e lol)
(fun fact: 05ab1e was once written in python)
Once the program's contents have been decoded, we start transpiling the program
But before any code gets turned into python, it needs to go through VyParse
VyParse takes the program string and returns a list of "tokens", which store information like structure types, etc.
Flow then goes back to vyxal.py
Each token has its type checked to see how to transpiled it
First, it is checked to see if it is a single character command
If it is, then the dictionary of commands in codepage.py is used to get the translation
But if it isn't, the token is then checked to see if it is a number
If it is, the translation looks like stack.push(<whatever>)
If it isn't, we then check to see if the token is a string
@Razetime is this making sense thus far?