#6 error recovery throws ArrayIndexOutOfBoundsException: -1

closed-fixed
code (8)
5
2006-11-26
2006-11-21
Tomas Hurka
No

When parsing text with syntax error, error recovery throws ArrayIndexOutOfBoundsException

prog_with_error.e:4 :error: parsing error caused by token 'return'
error recovery discarding state 18
error recovery discarding state 78
error recovery discarding state 60
error recovery discarding state 56
error recovery discarding state 43
error recovery discarding state 30
error recovery discarding state 21
error recovery discarding state 12
error recovery discarding state 6
error recovery discarding state 0
failed
java.lang.ArrayIndexOutOfBoundsException: -1
at Parser.val_pop(Parser.java:134)
at Parser.yyparse(Parser.java:545)
at Parser.start(Parser.java:404)
at syntax_checker.check_syntax(syntax_checker.java:25)
at syntax_checker.main(syntax_checker.java:15)

Thanks to Bernd Schoebel (b dot lix at gmx dot de) for discovering this problem.

Discussion

  • Tomas Hurka

    Tomas Hurka - 2006-11-26

    Logged In: YES
    user_id=482413
    Originator: YES

    Fixed in trunk.
    Checking in skeleton.c;
    /cvsroot/byaccj/1.1/src/skeleton.c,v <-- skeleton.c
    new revision: 1.10; previous revision: 1.9
    done

     
  • Tomas Hurka

    Tomas Hurka - 2006-11-26
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks