fork download
  1. uses java.io.InputStreamReader
  2. uses java.util.Scanner
  3. uses java.lang.System
  4.  
  5. var name: String = "Dids"
  6. var age: int = 55
  7. var height:double =1.88
  8. var weight:double =185.0kg
  9.  
  10. print("Name : ${name}")
  11. print("Age : ${age}")
  12. print("Height : ${height}")
  13. print("Height : ${height}")
  14.  
  15. print("Hi ${name}, you are aged ${age} and have a height of ${height}m, also your approx weight is ${weight}KG" )
Success #stdin #stdout #stderr 3.35s 165588KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
gw.lang.parser.exceptions.ParseResultsException: prog.gosu

Errors: 

Not a statement. [line:8 col:25] in
line 7: var height:double =1.88
line 8: var weight:double =185.0kg
line 9: 
Line Number: 8  Column: 25

Could not resolve symbol for : kg [line:8 col:25] in
line 7: var height:double =1.88
line 8: var weight:double =185.0kg
line 9: 
Line Number: 8  Column: 25


	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)