Go to the first, previous, next, last section, table of contents.


Printing the declarations and code in a file

Author(s): Manuel Hermenegildo.

Version: 0.5#7 (2003/7/29, 18:7:56 CEST)

A simple program for printing assertion information ( predicate declarations, property declarations, type declarations, etc.) and printing code-related information ( imports, exports, libraries used, etc.) on a file. The file should be a single Ciao or Prolog source file. It uses the Ciao compiler's pass one to do it. This program is specially useful for example for checking what assertions the assertion normalizer is producing from the original assertions in the file or to check what the compiler is actually seeing after some of the syntactic expansions (but before goal translations).

Usage (fileinfo)

   
    fileinfo -asr <filename.asr> 
       : pretty prints the contents of <filename.asr> 

    fileinfo [-v] [-m] <-a|-f|-c|-e> <filename> [libdir1] ... [libdirN]
    -v : verbose output (e.g., lists all files read)
    -m : restrict info to current module
    -a : print assertions 
    -f : print code and interface (imports/exports, etc.)
    -c : print code only
    -e : print only errors - useful to check syntax of assertions in file

    fileinfo -h
       : print this information

    Note that system lib paths *must* be given explicitly, e.g. :

    fileinfo -m -c foo.pl \
             /home/clip/System/ciao/lib \
             /home/clip/System/ciao/library \

More detailed explanation of options (fileinfo)


Go to the first, previous, next, last section, table of contents.