To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 6235
6234  |  6236
Subject: 
Re: LDraw syntax check in Perl
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 11 Jul 2001 20:27:50 GMT
Viewed: 
727 times
  
In lugnet.cad.dev, Jaco van der Molen wrote:

So what does it actually do?

The return values from the check routines indicate what kind of syntax
was detected.

Even values - bad syntax was found
Odd values  - no bad syntax
More specifically, the following values are added together to get the
complete return value:

1 - good DAT syntax
2 - MPD
4 - LDLite extensions
8 - MLCad extensions
16 - LDraw model commands (step, print, clear, etc)

When I run it, with i.e. NEW.DAT I get:
-------------------------------------
Checking 'c:\ldraw\models\new.dat'
Check results:  1
Short Check  :  1

done.
-------------------------------------

When I test it with a rather large MPD file I get:
-------------------------------------
Checking 'c:\ldraw\models\bbss\bbss.mpd'
Check results:  11
Short Check  :  3

done.
-------------------------------------

A value of 11 indicates the file is clean, with MPD and MLCad
metacommands (1 + 2 + 8).

The value of 3 indicates that the short check is not working correctly.
The long and short checks should always return the same value.  I'll
look into it.

Thanks for trying it!

Steve
Christopher! have you backed up your data?



Message is in Reply To:
  Re: LDraw syntax check in Perl
 
Hi Steve, When I run it, with i.e. NEW.DAT I get: ---...--- Checking 'c:\ldraw\models\new.dat' Check results: 1 Short Check : 1 done. ---...--- When I test it with a rather large MPD file I get: ---...--- Checking 'c:\ldraw\models\bbss\bbss.mpd' (...) (23 years ago, 10-Jul-01, to lugnet.cad.dev)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR