Skip to content

OliverSchlueter/StackPP

Repository files navigation

Generic badge Generic badge

Stack++

Smart stack + some registers = Stack++.

Looks a bit like assembly but it is not!

Edit: turns out I made a virtual machine and Stack++ is something like bytecode for it

Still in active development!

Build and run

Build jar from source

$ git clone https://github.com/OliverSchlueter/StackPP.git
$ cd StackPP/
$ gradlew shadowJar

Run jar

$ cd build/libs/
$ java -jar StackPP.jar [path to .spp file]

Use as dependency in gradle project

$ gradlew publishToMavenLocal

In your project add the following:

repositories {
    mavenLocal()
    ...
}

dependencies {
    implementation 'de.oliver:StackPP:version'
    ...
}

Documentation

You can find the documentation for the Stack++ language in StackPP.md.

You can find a bunch of examples in the examples/ directory.

IntelliJ plugin

I made a IntelliJ plugin, that adds syntax highlighting and auto-completion for Stack++.

You can find it here: StackPP-Plugin

Roadmap

  • Stack operations
  • Simple calculations
  • Conditions
  • Functions
  • Memory access
  • Read and write files
  • Simple graphics (wip)
    • import GameEngine
    • show window
    • set title
    • set width and height
    • set background color
    • draw rectangle with color
    • draw texture
    • draw text
  • Internet (not sure yet)

About

A simple programming language

Resources

Stars

Watchers

Forks

Languages