/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Development/parsers/flex_lexer.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Structure of flex file
 
2
----------------------
 
3
%{
 
4
 extra statements to include in the begining of produced C file
 
5
%}
 
6
"name  definition"      - list of variables which would be used later
 
7
%%
 
8
"pattern action"        - action is 'C' command, for example printf statments
 
9
                        which outputs appropriate token
 
10
                         + pattern '.' in the end means anything else
 
11
%%
 
12
<user code>             - function main calling yylex();