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.  
  8. print("Name : ${name}")
  9. print("Age : ${age}")
Success #stdin #stdout #stderr 2.62s 168560KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
gw.lang.parser.exceptions.ParseResultsException: prog.gosu

Errors: 

Expecting an "as" and/or ":" for "var" statement. [line:5 col:5] in
line 4: 
line 5: var name; String = "Dids"
line 6: var age; int =55
Line Number: 5  Column: 5

Expecting an "as" and/or ":" for "var" statement. [line:6 col:5] in
line 5: var name; String = "Dids"
line 6: var age; int =55
line 7: 
Line Number: 6  Column: 5

Expecting an "as" and/or ":" for "var" statement. [line:5 col:5] in
line 4: 
line 5: var name; String = "Dids"
line 6: var age; int =55
Line Number: 5  Column: 5

Unexpected token: String [line:5 col:11] in
line 4: 
line 5: var name; String = "Dids"
line 6: var age; int =55
Line Number: 5  Column: 11

Unexpected token: '=' [line:5 col:18] in
line 4: 
line 5: var name; String = "Dids"
line 6: var age; int =55
Line Number: 5  Column: 18

Unexpected token: '"' [line:5 col:20] in
line 4: 
line 5: var name; String = "Dids"
line 6: var age; int =55
Line Number: 5  Column: 20

Expecting an "as" and/or ":" for "var" statement. [line:6 col:5] in
line 5: var name; String = "Dids"
line 6: var age; int =55
line 7: 
Line Number: 6  Column: 5

Unexpected token: int [line:6 col:10] in
line 5: var name; String = "Dids"
line 6: var age; int =55
line 7: 
Line Number: 6  Column: 10

Unexpected token: '=' [line:6 col:14] in
line 5: var name; String = "Dids"
line 6: var age; int =55
line 7: 
Line Number: 6  Column: 14

Unexpected token: 55 [line:6 col:15] in
line 5: var name; String = "Dids"
line 6: var age; int =55
line 7: 
Line Number: 6  Column: 15

Could not resolve symbol for : name [line:8 col:17] in
line 7: 
line 8: print("Name : ${name}")
line 9: print("Age : ${age}") 
Expected Type: Object
Line Number: 8  Column: 17

Could not resolve symbol for : age [line:9 col:16] in
line  8: print("Name : ${name}")
line  9: print("Age : ${age}") 
Expected Type: Object
Line Number: 9  Column: 16


	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)