Skip to content
/ loco Public

An interpreter for the Lolcode programming language written in Java

License

Notifications You must be signed in to change notification settings

jpcarreon/loco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loco

Loco is an interpreter for the Lolcode programming language. Syntax for the programming language can be found here.

insert1

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.

Usage

Run Hotkeys

  • F6: Run program
  • F7: Start Debugger
  • F8: Run Next Line (only allowed if Debugger is active)

Features

  • 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

Building

Prerequisites are Java and Maven.

  1. Get the source by cloning the repo:

    git clone https://github.com/jpcarreon/loco.git

  2. cd into the root folder and switch to the maven-build branch with:

    git checkout maven-build

  3. cd into the project folder Loco. Make sure you are in the folder with the pom.xml file.

  4. Use Maven to build and run using the following command:

    mvn clean javafx:run

  5. (Optional) A .jar file can be generated by the use of the following command:

    mvn clean package

    The .jar file will be located inside the target folder

Credits

License

This software is licensed under the GNU General Public License v3.