Menu

Parsing Error?

Developers
2005-04-29
2012-10-08
  • SungHun Kim

    SungHun Kim - 2005-04-29

    Hi,

    In case of parsing errors, Recorder seems just exit without throwing Exception. Do you know how to get an Exception and deal with it in my program in case of parsing errors rather that quite the whole program?

    For example, the whole program quits after this message:

    0% Importing Source Files Error: Exception while parsing unit FILE:/tmp/kenyon/src/edu/se/evolution/kenyon/util/UnifiedDiffParser.java
    A Parse Error has occured: recoder.parser.ParseException: Encountered "package" at line 4, column 1.
    Was expecting one of:
    <EOF>
    "abstract" ...
    "class" ...
    "final" ...
    "import" ...
    "interface" ...
    "public" ...
    "strictfp" ...
    ";" ...

     
    • Tobias Gutzmann

      Tobias Gutzmann - 2005-11-20

      Hi,

      (ones again, my answer comes very late, but that'll change in the future)

      Recoder can't deal with this. It is assumed that there is no error in (context free) syntax when parsing source code (i.e. initial source files should follow grammar).

      Tobias.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.