This interpreter written using Python includes the lexical, syntax, and semantics analyzer.
python
python tkinter
- Make sure Python and
pipis preinstalled on your system.- Type the following command to check if already installed:
python --versionpip -V
- If not yet installed, you may grab the latest version here: https://www.python.org/downloads/
- Type the following command to check if already installed:
- Install Tkinter
- Tkinter can be installed using pip. Type the command in the command prompt to install Tkinter.
pip install tk
- Tkinter can be installed using pip. Type the command in the command prompt to install Tkinter.
- In order to run the program, use the command
python main.pyorpy main.py. - The LOLCode Interpreter has the following parts:
- File explorer. This allows you to select a
.lolfile to run. Once selected, the contents will be loaded to the text editor. - Text editor. This lets you view the code you want to run. This is also editable if you need to add changes before you run the code.
- Lexemes Table. This displays al the lexemes in your code after you press the execute button.
- Symbol Table. This displays the symbol table of your code after you press the execute button.
- Execute Button. This runs the code from the text editor, which in return also returns the lexeme table and symbol table.
- Console. This displays all of the user output.
- Pop out Inbox. Everytime the code needs input from user, a dialog box will appear.
- File explorer. This allows you to select a
- Andre Tuazon
- Coleen Therese Agsao
- This LOLCODE interpreter is the final project for CMSC 124 22-23 in UPLB.