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

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005