danbikel.parser.util
Class LispHead
java.lang.Object
danbikel.parser.util.LispHead
public class LispHead
- extends Object
Equivalent of Unix head command but for input streams/files
containing S-expressions. The S-expressions are read from standard input
or from a file specified on the command-line and are printed out, one
line per S-expression. If no integer flag is present, the first 10
S-expressions will be printed; otherwise, the specified number of
S-epxressions will be printed.
Method Summary |
static void |
main(String[] args)
Prints out the first n S-expressions from a file or standard
input. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
main
public static void main(String[] args)
- Prints out the first n S-expressions from a file or standard
input. Using the -i option indicates that the tree file being
read is in IBM format.
usage: [-i] [-number | -n number ] [ filename ]
Author: Dan Bikel.