
|
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.
# 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
Slag is the language of the Plasmacore 2D game development framework.
Download
DocumentationUtilitiesSyntax highlighting files for text editors:
LicenseSlag source and binaries are available under the terms of the Apache License 2.0.
|
