Viper is a Python-based interpeter that utilizes a domain-specific language for interpreting SOL (Online Session) porgrams, posessing a top-down recursive descent implementation approach.
Viper serves as a functional interpreter capable of controlling the Chrome browser. It enables automated actions for various online services, including email (Gmail), video (YouTube), Whatsapp Web, video conferencing (Google Meet), and handling PDF files. Additionally, the interpreter incorporates error handling mechanisms for lexical and syntactical analysis and supports comments denoted by the '//' symbol, ignoring the whole line that follows it.
Viper is implemented using Python, leveraging the Selenium library, particularly the webdriver package, to establish connections with the Chrome browser and its service links.
To run the Viper interpreter, ensure that you have the following prerequisites installed:
1. Python 3.8+
pip install selenium==4.0.0
pip install webdriver-manager
pip install pysimplegui
All inputs examples are in the program.sol file, which is called by main.py to execute the commands.
To run the interpreter you need to insert the following command in your terminal:
python main.py program_example.sol
OR
python3 main.py program_example.sol
python gui.py
OR
python3 gui.py