Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

LoomScript

LoomScript - Programming language

< >

LoomScript is a programming language created in 2013.

#922on PLDB 10Years Old 201Users
0Books 0Papers 16Repos


Example from Linguist:
package { import loom.Application; import loom2d.display.StageScaleMode; import loom2d.ui.SimpleLabel; /** The HelloWorld app renders a label with its name on it, and traces 'hello' to the log. */ public class HelloWorld extends Application { override public function run():void { stage.scaleMode = StageScaleMode.LETTERBOX; centeredMessage(simpleLabel, this.getFullTypeName()); trace("hello"); } // a convenience getter that generates a label and adds it to the stage private function get simpleLabel():SimpleLabel { return stage.addChild(new SimpleLabel("assets/Curse-hd.fnt")) as SimpleLabel; } // a utility to set the label's text and then center it on the stage private function centeredMessage(label:SimpleLabel, msg:String):void { label.text = msg; label.center(); label.x = stage.stageWidth / 2; label.y = (stage.stageHeight / 2) - (label.height / 2); } } }

Language features

Feature Supported Token Example
MultiLine Comments /* */
/* A comment
*/
Comments
// A comment
Line Comments //
// A comment
Semantic Indentation X
lux.html · loomscript.html · xc.html

View source

- Build the next great programming language · Search · Day 214 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com