The executable programs constitude the language parser and toolbox in the system. The data they operates on are files.Language parsers
There are two executable programs for HPF language parseing,
- hpf2dep --- takes as input any HPF program, say filename.f, produces filename.dep as output. filename.dep is a file that contains an intermediate representation of the input HPF program, in terms of an abstract syntax tree (AST) and some tables (among them the symbol table (ST) is the most important one).
Usage: hpfc2dep [-fixed] [-d] F90_file.f -d : debugging switch -fixed : fixed format- hpfsc --- takes as input a file filename.dep, performs various semantics check while augmenting the AST to some extend, and outputs a modified version of filename.dep.
Usage: hpfsc [-vhmcdoiD] HPF_file.dep -v : version -h : usage -m : write .mod files for module . -c : compile the source files, but do not link. -d : debugging parser -o : output filename. -i : standard library compilation -D : display the module dependence .For java langauage:
- java2dep --- takes as input a file filename.java, produces filename.dep as output.
Usage: java2dep [-d] javafile.java -d : debugging parserToolbox The toolbox includes two parts, as different ways of displaying the IR:
- dumpdep --- takes as input a file filename.dep, either from output of hpf2dep or output of hpfsc, produces a readable form of it to stdout.
Usage: dumpdep [-d nnn][-m] dep_file -d : debugging switch -m : generate the readable AST in HTML format- unparse --- takes as input a valid file filename.dep, generate an equivalent HPF program onto stdout.
Usage: unparse [-debug] [-verbose] [-version] dep_file -debug : Print useful debugging information -version : Print version number of compiled program
Email contact: zgs@npac.syr.edu