Loco is an interpreter for the Lolcode programming language. Syntax for the programming language can be found here.
Loco features a lexical analyzer, syntax analyzer, and semantic analyzer coded in the Java programming language. The GUI was made by utilizing JavaFX and SceneBuilder.
Loco aims to able to correctly parse and execute .lol files according to specifications. Some sample Lolcode files are included in the repo.
- F6: Run program
- F7: Start Debugger
- F8: Run Next Line (only allowed if Debugger is active)
- Syntax Highlighting in the code editor
- Lexeme list which identifies the TokenType of each lexeme
- Symbol Table which displays the current values of variables
- Adjustable code editor font size
- Viewable parse tree
- Line by line debugger
Prerequisites are Java and Maven.
-
Get the source by cloning the repo:
git clone https://github.com/jpcarreon/loco.git -
cdinto the root folder and switch to themaven-buildbranch with:git checkout maven-build -
cdinto the project folderLoco. Make sure you are in the folder with thepom.xmlfile. -
Use Maven to build and run using the following command:
mvn clean javafx:run -
(Optional) A
.jarfile can be generated by the use of the following command:mvn clean packageThe
.jarfile will be located inside thetargetfolder
- RichTextFx for the code editor
- Flowless for scrollbars in the code editor
This software is licensed under the GNU General Public License v3.
