diff options
Diffstat (limited to '')
-rw-r--r-- | src/build.l | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/build.l b/src/build.l index 7b770f7..30c79a6 100644 --- a/src/build.l +++ b/src/build.l | |||
@@ -118,36 +118,36 @@ int iStrDepth = 0; | |||
118 | 118 | ||
119 | "true" { | 119 | "true" { |
120 | yylval->bVal = true; | 120 | yylval->bVal = true; |
121 | return BOOL; | 121 | return LTR_BOOL; |
122 | } | 122 | } |
123 | "false" { | 123 | "false" { |
124 | yylval->bVal = false; | 124 | yylval->bVal = false; |
125 | return BOOL; | 125 | return LTR_BOOL; |
126 | } | 126 | } |
127 | 127 | ||
128 | [a-zA-Z_][a-zA-Z0-9_]*: { | 128 | [a-zA-Z_][a-zA-Z0-9_]*: { |
129 | yytext[yyleng-1] = '\0'; | 129 | yytext[yyleng-1] = '\0'; |
130 | yylval->sVal = rstrdup( yytext ); | 130 | yylval->sVal = rstrdup( yytext ); |
131 | return PROFILE; | 131 | return LTR_PROFILE; |
132 | } | 132 | } |
133 | 133 | ||
134 | [a-zA-Z_][a-zA-Z0-9_]* { | 134 | [a-zA-Z_][a-zA-Z0-9_]* { |
135 | yylval->sVal = rstrdup( yytext ); | 135 | yylval->sVal = rstrdup( yytext ); |
136 | if( b.isKeyword( yylval->sVal ) ) | 136 | if( b.isKeyword( yylval->sVal ) ) |
137 | return KEYWORD; | 137 | return LTR_KEYWORD; |
138 | else if( b.isCond( yylval->sVal ) ) | 138 | else if( b.isCond( yylval->sVal ) ) |
139 | return CONDITION; | 139 | return LTR_CONDITION; |
140 | return UNDEF; | 140 | return LTR_UNDEF; |
141 | } | 141 | } |
142 | 142 | ||
143 | -?([1-9][0-9]*)|(0) { | 143 | -?([1-9][0-9]*)|(0) { |
144 | yylval->iVal = strtol( yytext, NULL, 10 ); | 144 | yylval->iVal = strtol( yytext, NULL, 10 ); |
145 | return INT; | 145 | return LTR_INT; |
146 | } | 146 | } |
147 | 147 | ||
148 | (0\.0+)|(-?(([1-9][0-9]*)|(0))\.[0-9]*) { | 148 | (0\.0+)|(-?(([1-9][0-9]*)|(0))\.[0-9]*) { |
149 | yylval->fVal = strtof( yytext, NULL ); | 149 | yylval->fVal = strtof( yytext, NULL ); |
150 | return FLOAT; | 150 | return LTR_FLOAT; |
151 | } | 151 | } |
152 | 152 | ||
153 | \" { | 153 | \" { |
@@ -198,7 +198,7 @@ int iStrDepth = 0; | |||
198 | { | 198 | { |
199 | BEGIN( INITIAL ); | 199 | BEGIN( INITIAL ); |
200 | yylval->sVal = fstrdup( sBuf ); | 200 | yylval->sVal = fstrdup( sBuf ); |
201 | return STRING; | 201 | return LTR_STRING; |
202 | } | 202 | } |
203 | } | 203 | } |
204 | 204 | ||