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

Writing lex source

lex source consists of at most three sections: definitions, rules, and user-defined routines. The rules section is mandatory. Sections for definitions and user routines are optional, but if present, must appear in the indicated order:

definitions
%%
rules
%%
user routines


Next topic: The fundamentals of lex rules
Previous topic: Creation and use of a lexical analyzer with lex

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004