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

Google Groups | Julian Reyes | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Gosu on Eclipse 3.7.2

    Google Groups | 4 years ago | Julian Reyes
    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

    Root Cause Analysis

    1. 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()
    2. gw.internal.gosu
      GosuParser.parseProgram
      1. gw.internal.gosu.parser.ParserBase.verifyParsedElement(ParserBase.java:250)
      2. gw.internal.gosu.parser.GosuParser.parseProgram(GosuParser.java:624)
      3. gw.internal.gosu.parser.GosuParser.parseProgram(GosuParser.java:533)
      3 frames
    3. gw.lang.shell
      Gosu.main
      1. gw.lang.shell.Gosu.main(Gosu.java:100)
      1 frame