reader reports tokenizer errors through normal return
This commit is contained in:
parent
861b26c8b3
commit
dbd59ada5f
4 changed files with 25 additions and 10 deletions
|
|
@ -41,7 +41,7 @@ main() {
|
|||
if (tk.is_valid()) {
|
||||
cout << tk << endl;
|
||||
} else if (error.is_error()) {
|
||||
cout << "parsing error: " << endl;
|
||||
cout << "tokenizer error: " << endl;
|
||||
error.report(cout);
|
||||
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue