Fränsta Open Java
Find a file
2024-12-13 19:37:08 +01:00
src Updated Makefile for stdlib/SocketServer 2024-12-13 19:37:08 +01:00
.gitignore Fix Makefile to include subfolders for javac 2024-12-13 07:16:15 +01:00
froj.iml Updated workflow file 2024-09-17 13:52:59 +02:00
hello_world.froj Reverted hello_world.froj 2024-09-17 14:49:06 +02:00
LICENSE Init Froj 2024-09-17 11:15:57 +02:00
README.md Update README.md 2024-09-17 11:29:28 +02:00

Frensta Open Java

What is Froj?

Froj (Frensta Open Java) is a lightweight interpreter written in Java that makes use of the JVM.

Frensta?

Where im currently living, in the countryside in a small town called 'Fränsta' in Sweden.

Why Froj?

I wrote this interpreter as a way to learn and get some deeper understanding how interpreters is made.

TODO:

Implement some standard functions and method such as:

  • Read user input
  • Block style comments /* */
  • Lists
  • And more!

Pre-requisites

Java Runtime (1.8 or newer).

Wiki

Check out the wiki to get started

Hello World

The simplest way to get started:

Build the .jar from source:

Makefile

  • cd to /src
  • runmake compile

javac

  • cd to /src
  • run javac -d ./ ./com/saasta/froj/*.java
  • run jar -cfm froj.jar ./META-INF/MANIFEST.MF ./com/saasta/froj/*.class
  • Optional: Remove the .class files after creating the .jar:
    • Linux: rm -f ./com/saasta/froj/*.class
    • Windows(CMD): del ./com/saasta/froj/*.class
    • Windows(PowerShell): Remove-Item ./com/saasta/froj/*.class