This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 108218 - Better error checking of nbs files
Summary: Better error checking of nbs files
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: languages (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-26 21:14 UTC by pinus
Modified: 2008-01-24 18:36 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pinus 2007-06-26 21:14:07 UTC
I would like to see better error checking of nbs files to support development.
e.g. check for syntax errors
e.g. check if all tokens and rules referenced exist
Comment 1 Peter Nabbefeld 2008-01-24 18:36:05 UTC
I got the following problem: Error message is "Element$1 does not exist." I don't have "Element$1". I have "Element",
and it has probably an invalid definition, as I've basicly taken some BNF-like syntax definition and converted it into
NBS. However, the parser should tell me about, what is conflicting.

Some other things:
1. Shouldn't the AST tree be a tree? It looks more like some list of nodes ...
2. While I understand, that "S" is the root of the grammar definition - wouldn't it be more consistent to write
"GRAMMAR:S = ..." ? Just because all other instructions are starting this way ...