About | Download | Documentation | Utilities | License

About

Slag is an elegant, powerful, and efficient object-oriented language designed to be the high-level language of choice for game engines and frameworks.  Light and portable, its virtual machine can be easily integrated with any C++ program.  Slag's semantics (nature and purpose of operations) are similar to those of Java and C# while its clear and concise syntax resembles a blend of Java and BASIC.

A typical code snippet:

# Display the lines from file "data.txt" with line numbers, e.g.:
#    ...
#      9  The bored baker in his broad bed breaks
#     10  barely-baked barley bread
local Int32 line_number = 1
forEach (line in LineReader(File("data.txt")))
  println( "$(6)  $" (line_number,line) )
  line_number++
endForEach


The Slag compiler, virtual machine, standard library, and other language tools are freely available in both source and executable form.  Slag may be used commercially or non-commercially, either in the creation of standalone programs or as part of other projects.

Slag is the language of the Plasmacore 2D game development framework.

 

Download

  • Slag-0.20-win32 (2008.06.17)
    v0.20 binaries for Windows command-line use.  This download is not necessary to use Plasmacore - Plasmacore comes with its own copy of the Slag compiler.
  • SlagEdit Eclipse plug-in v0.20  (2008.06.17)
    Includes Slag v0.20 - no need to download the separate version above.
  • slaglib-0.20 (2008.06.17)
    v0.20 source code for the compiler and virtual machine.

 

Documentation   

Utilities

Syntax highlighting files for text editors:


License

Slag source and binaries are available under the terms of the Apache License 2.0.