LDraw Part Author/Reviewer
Registered: 3 years ago Posts: 1,064
It is an unknow line then.
The parameter of a line are separated by one or more whitespace.
In the case you mention "0//" this is the first parameter of the line, where a linetype 0 through 5 is expected. So it is an invalid line.
It's up to you as the author of the application what to do with that line :)
Basic parsing / file content
An LDraw file consists of one command per line. There is no line length restriction. Each command consists of optional leading whitespace followed by whitespace-delimited tokens. Some commands also have trailing arbitrary data which may itself include internal whitespace; such data is not tokenized, but treated as single unit according to the command.
Whitespace is defined as one or more spaces (#32), tabs (#9), or combination thereof.
LDraw.org Forums are hosted by P-Sky Software powered by Phorum. LDraw.org Forum template designed by Scriptmonkeys, modified by LDraw.org LEGO® is a registered trademark of the LEGO Group, which does not sponsor, endorse, or authorize this site.
Visit the official Lego website at http://www.lego.com. LDraw is a completely unofficial, community run free CAD system which represents official parts produced by the LEGO company.