Closed
Bug 631176
Opened 15 years ago
Closed 7 years ago
Narcissus should recover from parse errors
Categories
(Other Applications Graveyard :: Narcissus, defect)
Other Applications Graveyard
Narcissus
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: fabian.jakobs, Unassigned)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.6 Safari/534.16
Build Identifier: Narcissus rev 7ef973f51753eaaeb620
Right now Narcissus will stop parsing and throw an exception on the first parse error. Ideally Narcissus should recover from parse errors and continue parsing just like e.g. gcc does.
I'm interested in this because I'm using Narcissus to do background syntax checks in the Ace code editor (recently merged with Mozilla Skywriter) but right now it will always show no or exactly one parse error.
Reproducible: Always
Steps to Reproduce:
parsing something like this:
function foo(bar { // missing ')'
alert(bar)
}
Actual Results:
This will throw a parse error and stop parsing
Expected Results:
Ideally a error recovery rule would detect the missing ')' and continue parsing. The parse will still fail but possible further errors will also be reported.
Comment 1•7 years ago
|
||
Closing as Narcissus isn't maintained anymore.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Updated•7 years ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•