File format lacks comments
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA project |
New
|
Wishlist
|
Unassigned | ||
pcb |
New
|
Wishlist
|
Unassigned |
Bug Description
The pcb file format lacks a provision for comments. Two
types of comments should be added to both pcb files
and element files:
Simple file comments:
// This is a comment
// Generated by protel2pcb
These comments will not be preserved across edits.
Comment objects:
Element[....]
{
....
}
These comments will not be displayed in the editor
(unless someone wants to add a dialog box later) but
will be preserved across edits.
These objects could occur:
- Inside an element in an element file
- Inside an element embedded in a board file
- Elsewhere in an element file
For compatibilty with older tools that read pcb files, one
could always use:
cat file.pcb | fgrep -v "Comment[" | egrep -v "^//"
to strip off both types of comments.
Changed in geda-project: | |
importance: | Undecided → Wishlist |
tags: | added: file-format |
Ok, looks like pcb does allow one form of comment. Lines
beginning with "#" appear to be comments although the comments
at the begining of the file actually look like non-comment lines
since they contain data and some programs use # for metadata
(The most common example, "#define" in C).
And a search of parse_y.y and parse_y.l yielded no match
for "comment" or "remark". They may be handled in a crude
way outside the parser/lex analyzer.
Still need comment objects, though.