MAINSAIL Structure Blaster User's Guide, Chapter 6

previous   next   top   complete contents   complete index   framed top   this page unframed


6. Structure Blaster Utility Modules

6.1. STRTXT

The module STRTXT translates a data image in a file to a text file containing a text form, or vice versa. It prompts for all necessary information.

For example, if the file foo.txt contains:

<1>: CLASS foo
--------------
STRING s
POINTER next

<2>: 
record of class <1>
------------------------
s = "Hellothere."
next = <3>

<3>: 
record of class <1>
------------------------
s = "Bye now!"
next = NULLPOINTER
<
end-of-file or end-of-page character>

then a STRTXT session might look as follows on SPARC UNIX:

*strtxt<eol>

DT (data => text), TD (text => data), <eol> (stop): td<eol>
Input filefoo.txt<eol>
Output filestruct.dat<eol>
paged output (Yes or No): y<eol>
Data image size = 1024 storage units

DT (data => text), TD (text => data), <eol> (stop): dt<eol>
Input filestruct.dat<eol>
paged input (Yes or No): y<eol>
startPage for input (just <eolfor 0): <eol>
Output filetty<eol>
compressed output (Yes or No): n<eol>
systemWrittenOn uspa

<120>: 
CLASS foo
----------------
STRING s
POINTER next

<88>: 
record of CLASS <120> # foo
---------------------------------
s = "Hellothere."
next = <168>

<168>: 
record of CLASS <120> # foo
----------------------------------
s = "Bye now!"
next = NULLPOINTER
Data image size = 1024 storage units

DT (data => text), TD (text => data), <eol> (stop): <eol>

6.2. STRCHK

The utility STRCHK is used to print summary information about the contents of a Structure Blaster image stored in a file. It prompts for the name of the file and information about the position of the structure within the file. The output from STRCHK is self-explanatory.
previous   next   top   complete contents   complete index   framed top   this page unframed

MAINSAIL Structure Blaster User's Guide, Chapter 6