gw.lang.parser.exceptions.ParseResultsException

Errors: Syntax error. [line:1 col:16] in line 1: uses java.util.* line 2: class Greet { Line Number: 1 Column: 16 Unexpected token: class [line:2 col:1] in line 1: uses java.util.* line 2: class Greet { line 3: var name1: String Line Number: 2 Column: 1 Not a statement. [line:2 col:7] in line 1: uses java.util.* line 2: class Greet { line 3: var name1: String Line Number: 2 Column: 7 Could not resolve symbol for : Greet [line:2 col:7] in line 1: uses java.util.* line 2: class Greet { line 3: var name1: String Line Number: 2 Column: 7 Syntax error. [line:3 col:16] in line 2: class Greet { line 3: var name1: String line 4: construct(name2: String){ Line Number: 3 Column: 16 Unexpected token: construct [line:4 col:5] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 5 Could not resolve symbol for : name2 [line:4 col:15] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 15 Expecting ')' to close parenthesized expression. [line:4 col:15] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 15 Unexpected token: '(' [line:4 col:14] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 14 Not a statement. [line:4 col:15] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 15 Could not resolve symbol for : name2 [line:4 col:15] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 15 Unexpected token: ':' [line:4 col:20] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 20 Unexpected token: String [line:4 col:22] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 22 Syntax error. [line:4 col:22] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 22 Unexpected token: ')' [line:4 col:28] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 28 Could not resolve symbol for : name2 [line:5 col:15] in line 4: construct(name2: String){ line 5: name1=name2.capitalize() line 6: } Expected Type: String Line Number: 5 Column: 15 "Greet" is not a valid type. [line:11 col:11] in line 10: } line 11: var g=new Greet("World!") line 12: g.handShake() Line Number: 11 Column: 11

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5

  • via Unknown by Julian Reyes,
  • via Unknown by Teja,
  • Stack trace

    • gw.lang.parser.exceptions.ParseResultsException: Errors: Syntax error. [line:1 col:16] in line 1: uses java.util.* line 2: class Greet { Line Number: 1 Column: 16 Unexpected token: class [line:2 col:1] in line 1: uses java.util.* line 2: class Greet { line 3: var name1: String Line Number: 2 Column: 1 Not a statement. [line:2 col:7] in line 1: uses java.util.* line 2: class Greet { line 3: var name1: String Line Number: 2 Column: 7 Could not resolve symbol for : Greet [line:2 col:7] in line 1: uses java.util.* line 2: class Greet { line 3: var name1: String Line Number: 2 Column: 7 Syntax error. [line:3 col:16] in line 2: class Greet { line 3: var name1: String line 4: construct(name2: String){ Line Number: 3 Column: 16 Unexpected token: construct [line:4 col:5] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 5 Could not resolve symbol for : name2 [line:4 col:15] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 15 Expecting ')' to close parenthesized expression. [line:4 col:15] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 15 Unexpected token: '(' [line:4 col:14] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 14 Not a statement. [line:4 col:15] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 15 Could not resolve symbol for : name2 [line:4 col:15] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 15 Unexpected token: ':' [line:4 col:20] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 20 Unexpected token: String [line:4 col:22] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 22 Syntax error. [line:4 col:22] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 22 Unexpected token: ')' [line:4 col:28] in line 3: var name1: String line 4: construct(name2: String){ line 5: name1=name2.capitalize() Line Number: 4 Column: 28 Could not resolve symbol for : name2 [line:5 col:15] in line 4: construct(name2: String){ line 5: name1=name2.capitalize() line 6: } Expected Type: String Line Number: 5 Column: 15 "Greet" is not a valid type. [line:11 col:11] in line 10: } line 11: var g=new Greet("World!") line 12: g.handShake() Line Number: 11 Column: 11 at gw.internal.gosu.parser.ParserBase.verifyParsedElement(ParserBase.java:250) at gw.internal.gosu.parser.GosuParser.parseProgram(GosuParser.java:624) at gw.internal.gosu.parser.GosuParser.parseProgram(GosuParser.java:533) at gw.lang.shell.Gosu.main(Gosu.java:100)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.