<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Flex Bison C++ Example: src/FlexLexer.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul>
</div>
<h1>src/FlexLexer.h</h1><a href="FlexLexer_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*-C++-*-</span>
<a name="l00002"></a>00002 <span class="comment">// FlexLexer.h -- define interfaces for lexical analyzer classes generated</span>
<a name="l00003"></a>00003 <span class="comment">// by flex</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// Copyright (c) 1993 The Regents of the University of California.</span>
<a name="l00006"></a>00006 <span class="comment">// All rights reserved.</span>
<a name="l00007"></a>00007 <span class="comment">//</span>
<a name="l00008"></a>00008 <span class="comment">// This code is derived from software contributed to Berkeley by</span>
<a name="l00009"></a>00009 <span class="comment">// Kent Williams and Tom Epperly.</span>
<a name="l00010"></a>00010 <span class="comment">//</span>
<a name="l00011"></a>00011 <span class="comment">// Redistribution and use in source and binary forms, with or without</span>
<a name="l00012"></a>00012 <span class="comment">// modification, are permitted provided that the following conditions</span>
<a name="l00013"></a>00013 <span class="comment">// are met:</span>
<a name="l00014"></a>00014
<a name="l00015"></a>00015 <span class="comment">// 1. Redistributions of source code must retain the above copyright</span>
<a name="l00016"></a>00016 <span class="comment">// notice, this list of conditions and the following disclaimer.</span>
<a name="l00017"></a>00017 <span class="comment">// 2. Redistributions in binary form must reproduce the above copyright</span>
<a name="l00018"></a>00018 <span class="comment">// notice, this list of conditions and the following disclaimer in the</span>
<a name="l00019"></a>00019 <span class="comment">// documentation and/or other materials provided with the distribution.</span>
<a name="l00020"></a>00020
<a name="l00021"></a>00021 <span class="comment">// Neither the name of the University nor the names of its contributors</span>
<a name="l00022"></a>00022 <span class="comment">// may be used to endorse or promote products derived from this software</span>
<a name="l00023"></a>00023 <span class="comment">// without specific prior written permission.</span>
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="comment">// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR</span>
<a name="l00026"></a>00026 <span class="comment">// IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED</span>
<a name="l00027"></a>00027 <span class="comment">// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span>
<a name="l00028"></a>00028 <span class="comment">// PURPOSE.</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="comment">// This file defines FlexLexer, an abstract class which specifies the</span>
<a name="l00031"></a>00031 <span class="comment">// external interface provided to flex C++ lexer objects, and yyFlexLexer,</span>
<a name="l00032"></a>00032 <span class="comment">// which defines a particular lexer class.</span>
<a name="l00033"></a>00033 <span class="comment">//</span>
<a name="l00034"></a>00034 <span class="comment">// If you want to create multiple lexer classes, you use the -P flag</span>
<a name="l00035"></a>00035 <span class="comment">// to rename each yyFlexLexer to some other xxFlexLexer. You then</span>
<a name="l00036"></a>00036 <span class="comment">// include <FlexLexer.h> in your other sources once per lexer class:</span>
<a name="l00037"></a>00037 <span class="comment">//</span>
<a name="l00038"></a>00038 <span class="comment">// #undef yyFlexLexer</span>
<a name="l00039"></a>00039 <span class="comment">// #define yyFlexLexer xxFlexLexer</span>
<a name="l00040"></a>00040 <span class="comment">// #include <FlexLexer.h></span>
<a name="l00041"></a>00041 <span class="comment">//</span>
<a name="l00042"></a>00042 <span class="comment">// #undef yyFlexLexer</span>
<a name="l00043"></a>00043 <span class="comment">// #define yyFlexLexer zzFlexLexer</span>
<a name="l00044"></a>00044 <span class="comment">// #include <FlexLexer.h></span>
<a name="l00045"></a>00045 <span class="comment">// ...</span>
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <span class="preprocessor">#ifndef __FLEX_LEXER_H</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="comment">// Never included before - need to define base class.</span>
<a name="l00049"></a>00049 <span class="preprocessor">#define __FLEX_LEXER_H</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="preprocessor">#include <iostream></span>
<a name="l00052"></a>00052 <span class="preprocessor"># ifndef FLEX_STD</span>
<a name="l00053"></a><a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">00053</a> <span class="preprocessor"></span><span class="preprocessor"># define FLEX_STD std::</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span>
<a name="l00056"></a>00056 <span class="keyword">extern</span> <span class="stringliteral">"C++"</span> {
<a name="l00057"></a>00057
<a name="l00058"></a><a class="code" href="FlexLexer_8h.html#9ba7c416f135b0f0c1f4addded4616b5">00058</a> <span class="keyword">struct </span><a class="code" href="structyy__buffer__state.html">yy_buffer_state</a>;
<a name="l00059"></a>00059 <span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="FlexLexer_8h.html#9ba7c416f135b0f0c1f4addded4616b5">yy_state_type</a>;
<a name="l00060"></a>00060
<a name="l00061"></a><a class="code" href="classFlexLexer.html">00061</a> <span class="keyword">class </span><a class="code" href="classFlexLexer.html">FlexLexer</a> {
<a name="l00062"></a>00062 <span class="keyword">public</span>:
<a name="l00063"></a><a class="code" href="classFlexLexer.html#513c4982ef52db6d43151becbf3fe05a">00063</a> <span class="keyword">virtual</span> <a class="code" href="classFlexLexer.html#513c4982ef52db6d43151becbf3fe05a">~FlexLexer</a>() { }
<a name="l00064"></a>00064
<a name="l00065"></a><a class="code" href="classFlexLexer.html#dca6f8aa6ac5e871e2ffd01e76cd5d14">00065</a> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classFlexLexer.html#dca6f8aa6ac5e871e2ffd01e76cd5d14">YYText</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classFlexLexer.html#31e594872cba4bb896011d3ee1f75f0d">yytext</a>; }
<a name="l00066"></a><a class="code" href="classFlexLexer.html#54e92981ddbd6f05ce40b784bfc733f2">00066</a> <span class="keywordtype">int</span> <a class="code" href="classFlexLexer.html#54e92981ddbd6f05ce40b784bfc733f2">YYLeng</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classFlexLexer.html#7a483b8c8426cace921d961cd9634c8b">yyleng</a>; }
<a name="l00067"></a>00067
<a name="l00068"></a>00068 <span class="keyword">virtual</span> <span class="keywordtype">void</span>
<a name="l00069"></a>00069 <a class="code" href="classFlexLexer.html#3fa4649c1866a483fc391923ca90ca1d">yy_switch_to_buffer</a>(<span class="keyword">struct</span> <a class="code" href="structyy__buffer__state.html">yy_buffer_state</a>* new_buffer) = 0;
<a name="l00070"></a>00070 <span class="keyword">virtual</span> <span class="keyword">struct </span><a class="code" href="structyy__buffer__state.html">yy_buffer_state</a>*
<a name="l00071"></a>00071 <a class="code" href="classFlexLexer.html#516348ee1a0dde36e343118814cc42e0">yy_create_buffer</a>(<a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> istream* s, <span class="keywordtype">int</span> size) = 0;
<a name="l00072"></a>00072 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFlexLexer.html#6c59180ab84ba98af3704ba2cb018230">yy_delete_buffer</a>(<span class="keyword">struct</span> <a class="code" href="structyy__buffer__state.html">yy_buffer_state</a>* b) = 0;
<a name="l00073"></a>00073 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFlexLexer.html#4c447faae89a4b4b0397bd398c74a167">yyrestart</a>(<a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> istream* s) = 0;
<a name="l00074"></a>00074
<a name="l00075"></a>00075 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classFlexLexer.html#1b1f93d24f5a97f50eb1747fac568ccb">yylex</a>() = 0;
<a name="l00076"></a>00076
<a name="l00077"></a>00077 <span class="comment">// Call yylex with new input/output sources.</span>
<a name="l00078"></a><a class="code" href="classFlexLexer.html#7839dc782b9ab553e0eeb8f4debae802">00078</a> <span class="keywordtype">int</span> <a class="code" href="classFlexLexer.html#1b1f93d24f5a97f50eb1747fac568ccb">yylex</a>(<a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> istream* new_in, <a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> ostream* new_out = 0)
<a name="l00079"></a>00079 {
<a name="l00080"></a>00080 <a class="code" href="classFlexLexer.html#227e31f508499c6fed54fb47cc340a0d">switch_streams</a>(new_in, new_out);
<a name="l00081"></a>00081 <span class="keywordflow">return</span> <a class="code" href="classFlexLexer.html#1b1f93d24f5a97f50eb1747fac568ccb">yylex</a>();
<a name="l00082"></a>00082 }
<a name="l00083"></a>00083
<a name="l00084"></a>00084 <span class="comment">// Switch to new input/output streams. A nil stream pointer</span>
<a name="l00085"></a>00085 <span class="comment">// indicates "keep the current one".</span>
<a name="l00086"></a>00086 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFlexLexer.html#227e31f508499c6fed54fb47cc340a0d">switch_streams</a>(<a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> istream* new_in = 0,
<a name="l00087"></a>00087 <a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> ostream* new_out = 0) = 0;
<a name="l00088"></a>00088
<a name="l00089"></a><a class="code" href="classFlexLexer.html#57ca10b72b34694901ea4c6a989830ff">00089</a> <span class="keywordtype">int</span> <a class="code" href="classFlexLexer.html#57ca10b72b34694901ea4c6a989830ff">lineno</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classFlexLexer.html#511f8fed6925478cb9925edce88024c7">yylineno</a>; }
<a name="l00090"></a>00090
<a name="l00091"></a><a class="code" href="classFlexLexer.html#edc593d3f484e8d433abf1f26856ccc6">00091</a> <span class="keywordtype">int</span> <a class="code" href="classFlexLexer.html#edc593d3f484e8d433abf1f26856ccc6">debug</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classFlexLexer.html#fb25c8701977e6f510799f4cf8a4a029">yy_flex_debug</a>; }
<a name="l00092"></a><a class="code" href="classFlexLexer.html#1da05b19b783fd94e8a65cb4ee02dec8">00092</a> <span class="keywordtype">void</span> <a class="code" href="classFlexLexer.html#1da05b19b783fd94e8a65cb4ee02dec8">set_debug</a>(<span class="keywordtype">int</span> flag) { <a class="code" href="classFlexLexer.html#fb25c8701977e6f510799f4cf8a4a029">yy_flex_debug</a> = flag; }
<a name="l00093"></a>00093
<a name="l00094"></a>00094 <span class="keyword">protected</span>:
<a name="l00095"></a><a class="code" href="classFlexLexer.html#31e594872cba4bb896011d3ee1f75f0d">00095</a> <span class="keywordtype">char</span>* <a class="code" href="classFlexLexer.html#31e594872cba4bb896011d3ee1f75f0d">yytext</a>;
<a name="l00096"></a><a class="code" href="classFlexLexer.html#7a483b8c8426cace921d961cd9634c8b">00096</a> <span class="keywordtype">int</span> <a class="code" href="classFlexLexer.html#7a483b8c8426cace921d961cd9634c8b">yyleng</a>;
<a name="l00097"></a><a class="code" href="classFlexLexer.html#511f8fed6925478cb9925edce88024c7">00097</a> <span class="keywordtype">int</span> <a class="code" href="classFlexLexer.html#511f8fed6925478cb9925edce88024c7">yylineno</a>; <span class="comment">// only maintained if you use %option yylineno</span>
<a name="l00098"></a><a class="code" href="classFlexLexer.html#fb25c8701977e6f510799f4cf8a4a029">00098</a> <span class="keywordtype">int</span> <a class="code" href="classFlexLexer.html#fb25c8701977e6f510799f4cf8a4a029">yy_flex_debug</a>; <span class="comment">// only has effect with -d or "%option debug"</span>
<a name="l00099"></a>00099 };
<a name="l00100"></a>00100
<a name="l00101"></a>00101 }
<a name="l00102"></a>00102 <span class="preprocessor">#endif // FLEXLEXER_H</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span>
<a name="l00104"></a>00104 <span class="preprocessor">#if defined(yyFlexLexer) || ! defined(yyFlexLexerOnce)</span>
<a name="l00105"></a>00105 <span class="preprocessor"></span><span class="comment">// Either this is the first time through (yyFlexLexerOnce not defined),</span>
<a name="l00106"></a>00106 <span class="comment">// or this is a repeated include to define a different flavor of</span>
<a name="l00107"></a>00107 <span class="comment">// yyFlexLexer, as discussed in the flex manual.</span>
<a name="l00108"></a><a class="code" href="FlexLexer_8h.html#8993a9681709a4e65c20e1e8d5751064">00108</a> <span class="preprocessor">#define yyFlexLexerOnce</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span>
<a name="l00110"></a>00110 <span class="keyword">extern</span> <span class="stringliteral">"C++"</span> {
<a name="l00111"></a>00111
<a name="l00112"></a><a class="code" href="classExampleFlexLexer.html">00112</a> <span class="keyword">class </span><a class="code" href="scanner_8cc.html#f699458ba5331ddec7e15a878f42f8f5">yyFlexLexer</a> : <span class="keyword">public</span> <a class="code" href="classFlexLexer.html">FlexLexer</a>
<a name="l00113"></a>00113 {
<a name="l00114"></a>00114 <span class="keyword">public</span>:
<a name="l00115"></a>00115 <span class="comment">// arg_yyin and arg_yyout default to the cin and cout, but we</span>
<a name="l00116"></a>00116 <span class="comment">// only make that assignment when initializing in yylex().</span>
<a name="l00117"></a>00117 <a class="code" href="scanner_8cc.html#f699458ba5331ddec7e15a878f42f8f5">yyFlexLexer</a>(<a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> istream* arg_yyin = 0,
<a name="l00118"></a>00118 <a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> ostream* arg_yyout = 0);
<a name="l00119"></a>00119
<a name="l00120"></a>00120 <span class="keyword">virtual</span> ~<a class="code" href="scanner_8cc.html#f699458ba5331ddec7e15a878f42f8f5">yyFlexLexer</a>();
<a name="l00121"></a>00121
<a name="l00122"></a>00122 <span class="keywordtype">void</span> <a class="code" href="classFlexLexer.html#3fa4649c1866a483fc391923ca90ca1d">yy_switch_to_buffer</a>(<span class="keyword">struct</span> <a class="code" href="structyy__buffer__state.html">yy_buffer_state</a>* new_buffer);
<a name="l00123"></a>00123 <span class="keyword">struct </span><a class="code" href="structyy__buffer__state.html">yy_buffer_state</a>* <a class="code" href="classFlexLexer.html#516348ee1a0dde36e343118814cc42e0">yy_create_buffer</a>(<a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> istream* s, <span class="keywordtype">int</span> size);
<a name="l00124"></a>00124 <span class="keywordtype">void</span> <a class="code" href="classFlexLexer.html#6c59180ab84ba98af3704ba2cb018230">yy_delete_buffer</a>(<span class="keyword">struct</span> <a class="code" href="structyy__buffer__state.html">yy_buffer_state</a>* b);
<a name="l00125"></a>00125 <span class="keywordtype">void</span> <a class="code" href="classFlexLexer.html#4c447faae89a4b4b0397bd398c74a167">yyrestart</a>(<a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> istream* s);
<a name="l00126"></a>00126
<a name="l00127"></a>00127 <span class="keywordtype">void</span> yypush_buffer_state(<span class="keyword">struct</span> <a class="code" href="structyy__buffer__state.html">yy_buffer_state</a>* new_buffer);
<a name="l00128"></a>00128 <span class="keywordtype">void</span> yypop_buffer_state();
<a name="l00129"></a>00129
<a name="l00130"></a>00130 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classFlexLexer.html#1b1f93d24f5a97f50eb1747fac568ccb">yylex</a>();
<a name="l00131"></a>00131 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFlexLexer.html#227e31f508499c6fed54fb47cc340a0d">switch_streams</a>(<a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> istream* new_in,
<a name="l00132"></a>00132 <a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> ostream* new_out);
<a name="l00133"></a>00133
<a name="l00134"></a>00134 <span class="comment">// This fixes a compatibility problem between source generated by flex</span>
<a name="l00135"></a>00135 <span class="comment">// 2.5.34 and 2.5.35: always define yywrap as a virtual function.</span>
<a name="l00136"></a>00136 <span class="keyword">virtual</span> <span class="keywordtype">int</span> yywrap();
<a name="l00137"></a>00137
<a name="l00138"></a>00138 <span class="keyword">protected</span>:
<a name="l00139"></a>00139 <span class="keyword">virtual</span> <span class="keywordtype">int</span> LexerInput(<span class="keywordtype">char</span>* buf, <span class="keywordtype">int</span> max_size);
<a name="l00140"></a>00140 <span class="keyword">virtual</span> <span class="keywordtype">void</span> LexerOutput(<span class="keyword">const</span> <span class="keywordtype">char</span>* buf, <span class="keywordtype">int</span> size);
<a name="l00141"></a>00141 <span class="keyword">virtual</span> <span class="keywordtype">void</span> LexerError(<span class="keyword">const</span> <span class="keywordtype">char</span>* msg);
<a name="l00142"></a>00142
<a name="l00143"></a>00143 <span class="keywordtype">void</span> yyunput(<span class="keywordtype">int</span> c, <span class="keywordtype">char</span>* buf_ptr);
<a name="l00144"></a>00144 <span class="keywordtype">int</span> yyinput();
<a name="l00145"></a>00145
<a name="l00146"></a>00146 <span class="keywordtype">void</span> yy_load_buffer_state();
<a name="l00147"></a>00147 <span class="keywordtype">void</span> yy_init_buffer(<span class="keyword">struct</span> <a class="code" href="structyy__buffer__state.html">yy_buffer_state</a>* b, <a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> istream* s);
<a name="l00148"></a>00148 <span class="keywordtype">void</span> yy_flush_buffer(<span class="keyword">struct</span> <a class="code" href="structyy__buffer__state.html">yy_buffer_state</a>* b);
<a name="l00149"></a>00149
<a name="l00150"></a><a class="code" href="classExampleFlexLexer.html#383b30396dbb7029d7e3e81a0d694aaf">00150</a> <span class="keywordtype">int</span> yy_start_stack_ptr;
<a name="l00151"></a><a class="code" href="classExampleFlexLexer.html#76ec0c16f39b1fe3962532fe90e149f4">00151</a> <span class="keywordtype">int</span> yy_start_stack_depth;
<a name="l00152"></a><a class="code" href="classExampleFlexLexer.html#49d7d96c90756296e1591fe21fa8c9df">00152</a> <span class="keywordtype">int</span>* yy_start_stack;
<a name="l00153"></a>00153
<a name="l00154"></a>00154 <span class="keywordtype">void</span> yy_push_state(<span class="keywordtype">int</span> new_state);
<a name="l00155"></a>00155 <span class="keywordtype">void</span> yy_pop_state();
<a name="l00156"></a>00156 <span class="keywordtype">int</span> yy_top_state();
<a name="l00157"></a>00157
<a name="l00158"></a>00158 <a class="code" href="FlexLexer_8h.html#9ba7c416f135b0f0c1f4addded4616b5">yy_state_type</a> yy_get_previous_state();
<a name="l00159"></a>00159 <a class="code" href="FlexLexer_8h.html#9ba7c416f135b0f0c1f4addded4616b5">yy_state_type</a> yy_try_NUL_trans(<a class="code" href="FlexLexer_8h.html#9ba7c416f135b0f0c1f4addded4616b5">yy_state_type</a> current_state);
<a name="l00160"></a>00160 <span class="keywordtype">int</span> yy_get_next_buffer();
<a name="l00161"></a>00161
<a name="l00162"></a><a class="code" href="classExampleFlexLexer.html#7cff7ddb59e7f36acca43f3175ecee2e">00162</a> <a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> istream* yyin; <span class="comment">// input source for default LexerInput</span>
<a name="l00163"></a><a class="code" href="classExampleFlexLexer.html#aef7b5f8cb8091ff111090a948830353">00163</a> <a class="code" href="FlexLexer_8h.html#e50ff830f34b9e244163babb41a1552d">FLEX_STD</a> ostream* yyout; <span class="comment">// output sink for default LexerOutput</span>
<a name="l00164"></a>00164
<a name="l00165"></a>00165 <span class="comment">// yy_hold_char holds the character lost when yytext is formed.</span>
<a name="l00166"></a><a class="code" href="classExampleFlexLexer.html#1969d114315ac9946be75cb9eb2fc948">00166</a> <span class="keywordtype">char</span> yy_hold_char;
<a name="l00167"></a>00167
<a name="l00168"></a>00168 <span class="comment">// Number of characters read into yy_ch_buf.</span>
<a name="l00169"></a><a class="code" href="classExampleFlexLexer.html#f5d728f589fa1a021d6664fde0036af2">00169</a> <span class="keywordtype">int</span> <a class="code" href="structyy__buffer__state.html#06406208824817acfec2183b79080945">yy_n_chars</a>;
<a name="l00170"></a>00170
<a name="l00171"></a>00171 <span class="comment">// Points to current character in buffer.</span>
<a name="l00172"></a><a class="code" href="classExampleFlexLexer.html#b8f4260406de48bcbe4c02f7cf2250c2">00172</a> <span class="keywordtype">char</span>* yy_c_buf_p;
<a name="l00173"></a>00173
<a name="l00174"></a><a class="code" href="classExampleFlexLexer.html#ffe749781cde5d9a408b9a4a5ebc32ec">00174</a> <span class="keywordtype">int</span> yy_init; <span class="comment">// whether we need to initialize</span>
<a name="l00175"></a><a class="code" href="classExampleFlexLexer.html#03a661dee9e518732f7cedb3ac1c1a68">00175</a> <span class="keywordtype">int</span> yy_start; <span class="comment">// start state number</span>
<a name="l00176"></a>00176
<a name="l00177"></a>00177 <span class="comment">// Flag which is used to allow yywrap()'s to do buffer switches</span>
<a name="l00178"></a>00178 <span class="comment">// instead of setting up a fresh yyin. A bit of a hack ...</span>
<a name="l00179"></a><a class="code" href="classExampleFlexLexer.html#badddb985d682a8dd0eacefe86841bb3">00179</a> <span class="keywordtype">int</span> yy_did_buffer_switch_on_eof;
<a name="l00180"></a>00180
<a name="l00181"></a>00181
<a name="l00182"></a><a class="code" href="classExampleFlexLexer.html#d30661105d1d83cc3ca0fc72abc37559">00182</a> <span class="keywordtype">size_t</span> yy_buffer_stack_top;
<a name="l00183"></a><a class="code" href="classExampleFlexLexer.html#f157bf13b09ff17c4300de35ef287ccd">00183</a> <span class="keywordtype">size_t</span> yy_buffer_stack_max;
<a name="l00184"></a><a class="code" href="classExampleFlexLexer.html#1f610c0de0abf7b7ae1a50bad8f72cb0">00184</a> <span class="keyword">struct </span><a class="code" href="structyy__buffer__state.html">yy_buffer_state</a> ** yy_buffer_stack;
<a name="l00185"></a>00185 <span class="keywordtype">void</span> yyensure_buffer_stack(<span class="keywordtype">void</span>);
<a name="l00186"></a>00186
<a name="l00187"></a>00187 <span class="comment">// The following are not always needed, but may be depending</span>
<a name="l00188"></a>00188 <span class="comment">// on use of certain flex features (like REJECT or yymore()).</span>
<a name="l00189"></a>00189
<a name="l00190"></a><a class="code" href="classExampleFlexLexer.html#345d71fe69eb3af98c88304d1363c60b">00190</a> <a class="code" href="FlexLexer_8h.html#9ba7c416f135b0f0c1f4addded4616b5">yy_state_type</a> yy_last_accepting_state;
<a name="l00191"></a><a class="code" href="classExampleFlexLexer.html#70159f35b5486703f1d5d2625276a67c">00191</a> <span class="keywordtype">char</span>* yy_last_accepting_cpos;
<a name="l00192"></a>00192
<a name="l00193"></a><a class="code" href="classExampleFlexLexer.html#f546c8162f3d60cb65bd1143bc7ff0a5">00193</a> <a class="code" href="FlexLexer_8h.html#9ba7c416f135b0f0c1f4addded4616b5">yy_state_type</a>* yy_state_buf;
<a name="l00194"></a><a class="code" href="classExampleFlexLexer.html#c6e22e9d3a7809549a38f50a6fa940a6">00194</a> <a class="code" href="FlexLexer_8h.html#9ba7c416f135b0f0c1f4addded4616b5">yy_state_type</a>* yy_state_ptr;
<a name="l00195"></a>00195
<a name="l00196"></a><a class="code" href="classExampleFlexLexer.html#6de631375bf915b306c03875d4ff625a">00196</a> <span class="keywordtype">char</span>* yy_full_match;
<a name="l00197"></a><a class="code" href="classExampleFlexLexer.html#396901b201cbd54dee1d9e6d98f500fc">00197</a> <span class="keywordtype">int</span>* yy_full_state;
<a name="l00198"></a><a class="code" href="classExampleFlexLexer.html#81d5838b9bf334c950b344856c85cb0c">00198</a> <span class="keywordtype">int</span> yy_full_lp;
<a name="l00199"></a>00199
<a name="l00200"></a><a class="code" href="classExampleFlexLexer.html#aa870cdeccf335d3322cfd7f0b6a9e4c">00200</a> <span class="keywordtype">int</span> yy_lp;
<a name="l00201"></a><a class="code" href="classExampleFlexLexer.html#f824a7cee481a10d34fe4fb9b3bc9be9">00201</a> <span class="keywordtype">int</span> yy_looking_for_trail_begin;
<a name="l00202"></a>00202
<a name="l00203"></a><a class="code" href="classExampleFlexLexer.html#74964b7e5fef01008c9a078b80fd94c7">00203</a> <span class="keywordtype">int</span> yy_more_flag;
<a name="l00204"></a><a class="code" href="classExampleFlexLexer.html#100cd8bfaba0508937a9d52902ac1ccc">00204</a> <span class="keywordtype">int</span> yy_more_len;
<a name="l00205"></a><a class="code" href="classExampleFlexLexer.html#7a80054caab9dd26e9f5a844bc62ed0a">00205</a> <span class="keywordtype">int</span> yy_more_offset;
<a name="l00206"></a><a class="code" href="classExampleFlexLexer.html#3ce3d8c86eef5bfa37c9bf067e360ccf">00206</a> <span class="keywordtype">int</span> yy_prev_more_offset;
<a name="l00207"></a>00207 };
<a name="l00208"></a>00208
<a name="l00209"></a>00209 } <span class="comment">// extern "C++"</span>
<a name="l00210"></a>00210
<a name="l00211"></a>00211 <span class="preprocessor">#endif // yyFlexLexer || ! yyFlexLexerOnce</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Sep 5 10:26:25 2009 for Flex Bison C++ Example by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>