uses java.io.InputStreamReader uses java.util.Scanner uses java.lang.System class HelloWorld { static function main(args: String[]) { print("Hello, Gosu!") } }
Standard input is empty
Standard output is empty
gw.lang.parser.exceptions.ParseResultsException: prog.gosu Errors: The 'static' modifier is not allowed here. [line:8 col:5] in line 7: print("Hello, Gosu!") line 8: } line 9: } Line Number: 8 Column: 5 at gw.internal.gosu.parser.ParserBase.verifyParsedElement(ParserBase.java:292) at gw.internal.gosu.parser.ParserBase.verifyParsedElement(ParserBase.java:263) at gw.internal.gosu.parser.GosuClassParser.parseDefinitions(GosuClassParser.java:475) at gw.internal.gosu.parser.GosuClass.compileDefinitionsIfNeeded(GosuClass.java:1551) at gw.internal.gosu.parser.GosuClass.compileDefinitionsIfNeeded(GosuClass.java:1494) at gw.internal.gosu.parser.GosuClass.isValid(GosuClass.java:925) at gw.internal.gosu.parser.GosuProgram_Proxy.isValid(gw.internal.gosu.parser.GosuProgram_Proxy:2) at gw.internal.gosu.parser.GosuProgramParser.parseExpressionOrProgram(GosuProgramParser.java:229) at gw.lang.Gosu.runWithFile(Gosu.java:621) at gw.lang.Gosu.start(Gosu.java:140) at gw.lang.Gosu.main(Gosu.java:70)