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" ...
";" ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
(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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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" ...
";" ...
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.