DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
lex

Running the lexical analyzer

By default, the lexical analyzer takes input from the standard input. To have it take input from a file, use redirection; for example:

a.out < text.in

a.out is the executable lexical analyzer.

Output is sent to the standard output. You can redirect this as well:

a.out < text.in > text.out


Next topic: Using make with lex
Previous topic: Compiling a lexical analyzer

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003