[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
About Bison Error Recovery
From: |
Michael |
Subject: |
About Bison Error Recovery |
Date: |
Sun, 16 Nov 2003 16:20:30 +0800 |
hi all,
I am new to bison, and have a simple question.
In Bison grammar file, there are only rules like these:
============================================================
start:
| t_USE t_Identifier t_Semocolon
;
============================================================
Also I have a Target Language file:
============================================================
use a1;
use a2
use a3;
============================================================
Apparently, I wish to report error at the phrase 'use a2', and go on parsing
Then, what should I do with the grammar file, add 'error' bison-keywords to
implement this simple error recovery?
Thanks!
- About Bison Error Recovery,
Michael <=