summaryrefslogtreecommitdiffabout
path: root/include/sitecing/sitecing_enflesher.h
Unidiff
Diffstat (limited to 'include/sitecing/sitecing_enflesher.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/sitecing/sitecing_enflesher.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/include/sitecing/sitecing_enflesher.h b/include/sitecing/sitecing_enflesher.h
index db15bc3..9eefdcc 100644
--- a/include/sitecing/sitecing_enflesher.h
+++ b/include/sitecing/sitecing_enflesher.h
@@ -10,12 +10,15 @@ using namespace std;
10 * @brief The preprocessed source builder. 10 * @brief The preprocessed source builder.
11 */ 11 */
12 12
13#ifndef sitecing_enflesher_flexlexer_once 13#ifndef sitecing_enflesher_flexlexer_once
14#define sitecing_enflesher_flexlexer_once 14#define sitecing_enflesher_flexlexer_once
15#undef yyFlexLexer 15#undef yyFlexLexer
16/**
17 * nevermind me
18 */
16#define yyFlexLexer sitecing_enflesherFlexLexer 19#define yyFlexLexer sitecing_enflesherFlexLexer
17#include <FlexLexer.h> 20#include <FlexLexer.h>
18#undef yyFlexLexerOnce 21#undef yyFlexLexerOnce
19#endif 22#endif
20 23
21class sitecing_parser; 24class sitecing_parser;
@@ -23,17 +26,17 @@ class sitecing_parser;
23 * The enfleshing of the skeleton file according to the in-memory parsed 26 * The enfleshing of the skeleton file according to the in-memory parsed
24 * component source. 27 * component source.
25 */ 28 */
26class sitecing_enflesher : public sitecing_enflesherFlexLexer { 29class sitecing_enflesher : public sitecing_enflesherFlexLexer {
27 public: 30 public:
28 /** 31 /**
29 * It is time to anchor output with the #line directive. 32 * It is time to anchor output with the \#line directive.
30 */ 33 */
31 bool anchor_time; 34 bool anchor_time;
32 /** 35 /**
33 * The file currently being written is supposed to have #line 36 * The file currently being written is supposed to have \#line
34 * directives all around the place. 37 * directives all around the place.
35 */ 38 */
36 bool anchoraged; 39 bool anchoraged;
37 /** 40 /**
38 * The reference to the parser object containg the parsed source. 41 * The reference to the parser object containg the parsed source.
39 */ 42 */
@@ -56,17 +59,26 @@ class sitecing_enflesher : public sitecing_enflesherFlexLexer {
56 59
57 /** 60 /**
58 * Do the job. 61 * Do the job.
59 */ 62 */
60 void enflesh(); 63 void enflesh();
61 64
65 /**
66 * Output parsed data
67 * @param buf pointer to the data
68 * @param size length of the buffer pointed by buf
69 */
62 virtual void LexerOutput(const char *buf,int size); 70 virtual void LexerOutput(const char *buf,int size);
71 /**
72 * Lexer generated by flex
73 * @return zero on success
74 */
63 virtual int yylex(); 75 virtual int yylex();
64 76
65 /** 77 /**
66 * Put a #line anchor into output. 78 * Put a \#line anchor into output.
67 */ 79 */
68 void anchor(); 80 void anchor();
69 81
70 /** 82 /**
71 * Close previously opened output stream, rename to the 'correct' 83 * Close previously opened output stream, rename to the 'correct'
72 * destination filename, if needed, and open new file. 84 * destination filename, if needed, and open new file.