| 1 |
/* |
| 2 |
Copyright(C) 1999-2020 National Technology & Engineering Solutions |
| 3 |
of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 4 |
NTESS, the U.S. Government retains certain rights in this software. |
| 5 |
|
| 6 |
See packages/seacas/LICENSE for details |
| 7 |
|
| 8 |
Redistribution and use in source and binary forms, with or without |
| 9 |
modification, are permitted provided that the following conditions are |
| 10 |
met: |
| 11 |
|
| 12 |
* Redistributions of source code must retain the above copyright |
| 13 |
notice, this list of conditions and the following disclaimer. |
| 14 |
|
| 15 |
* Redistributions in binary form must reproduce the above |
| 16 |
copyright notice, this list of conditions and the following |
| 17 |
disclaimer in the documentation and/or other materials provided |
| 18 |
with the distribution. |
| 19 |
|
| 20 |
* Neither the name of NTESS nor the names of its |
| 21 |
contributors may be used to endorse or promote products derived |
| 22 |
from this software without specific prior written permission. |
| 23 |
|
| 24 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 25 |
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 26 |
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 27 |
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 28 |
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 29 |
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 30 |
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 31 |
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 32 |
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 33 |
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 34 |
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 35 |
*/ |
| 36 |
%{ |
| 37 |
#include <stdio.h> |
| 38 |
|
| 39 |
#define YYPARSE_PARAM |
| 40 |
|
| 41 |
#include "phactoriParser.tab.hpp" |
| 42 |
|
| 43 |
void track_location(YYLTYPE *loc, char *txt) |
| 44 |
{ |
| 45 |
loc->first_line = loc->last_line; |
| 46 |
loc->first_column = loc->last_column; |
| 47 |
int i; |
| 48 |
for(i = 0; txt[i] != '\0'; i++) |
| 49 |
{ |
| 50 |
if(txt[i] == '\n') |
| 51 |
{ |
| 52 |
loc->last_line++; |
| 53 |
loc->last_column = 0; |
| 54 |
} |
| 55 |
else |
| 56 |
{ |
| 57 |
loc->last_column++; |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
#define YY_USER_ACTION track_location(yylloc, yytext); |
| 63 |
|
| 64 |
%} |
| 65 |
|
| 66 |
%option reentrant bison-bridge bison-locations |
| 67 |
%option prefix="catalyst" |
| 68 |
|
| 69 |
%% |
| 70 |
|
| 71 |
/* On Off Criteria Block */ |
| 72 |
|
| 73 |
(?i:onoffcriteria) { return(TOKONOFFCRITERIABLOCK); } |
| 74 |
(?i:triggerthresholds) { yylval->string=strdup(yytext); return(TOKTRIGGERTHRESHOLDS); } |
| 75 |
(?i:experimental) { yylval->string=strdup(yytext); return(TOKEXPERIMENTAL); } |
| 76 |
(?i:experimental\ +type) { return(TOKEXPERIMENTALTYPE); } |
| 77 |
(?i:threshold\ +variable\ +function) { return(TOKTHRESHOLDVARIABLEFUNCTION); } |
| 78 |
(?i:minimum) { yylval->string=strdup(yytext); return(TOKMINIMUM); } |
| 79 |
(?i:maximum) { yylval->string=strdup(yytext); return(TOKMAXIMUM); } |
| 80 |
(?i:mean) { yylval->string=strdup(yytext); return(TOKMEAN); } |
| 81 |
(?i:sum) { yylval->string=strdup(yytext); return(TOKSUM); } |
| 82 |
(?i:count) { yylval->string=strdup(yytext); return(TOKCOUNT); } |
| 83 |
(?i:threshold\ +values) { return(TOKTHRESHOLDVALUES); } |
| 84 |
(?i:frames\ +after\ +trigger) { return(TOKFRAMESAFTERTRIGGER); } |
| 85 |
(?i:maximum\ +triggers\ +per\ +threshold) { return(TOKMAXIMUMTRIGGERSPERTHRESHOLD); } |
| 86 |
|
| 87 |
/* On Off Criteria Block */ |
| 88 |
|
| 89 |
/* Experimental Block */ |
| 90 |
|
| 91 |
(?i:experimental\ +block) { return(TOKEXPERIMENTALBLOCK); } |
| 92 |
|
| 93 |
/* Experimental Block */ |
| 94 |
|
| 95 |
/* Visual Marker */ |
| 96 |
|
| 97 |
(?i:visualmarker) { return(TOKVISUALMARKER); } |
| 98 |
(?i:shape) { return(TOKSHAPE); } |
| 99 |
(?i:color) { return(TOKCOLOR); } |
| 100 |
(?i:absolute\ +size) { return(TOKABSOLUTESIZE); } |
| 101 |
(?i:relative\ +size) { return(TOKRELATIVESIZE); } |
| 102 |
(?i:orientation) { return(TOKORIENTATION); } |
| 103 |
(?i:resolution) { return(TOKRESOLUTION); } |
| 104 |
(?i:marker\ +at\ +relative\ +point) { return(TOKMARKERATRELATIVEPOINT); } |
| 105 |
(?i:marker\ +at\ +absolute\ +point) { return(TOKMARKERATABSOLUTEPOINT); } |
| 106 |
(?i:marker\ +at\ +node) { return(TOKMARKERATNODE); } |
| 107 |
(?i:marker\ +at\ +element) { return(TOKMARKERATELEMENT); } |
| 108 |
(?i:marker\ +at\ +data\ +point) { return(TOKMARKERATDATAPOINT); } |
| 109 |
(?i:vector\ +parameter) { return(TOKVECTORPARAMETER); } |
| 110 |
(?i:scalar\ +parameter) { return(TOKSCALARPARAMETER); } |
| 111 |
(?i:integer\ +parameter) { return(TOKINTEGERPARAMETER); } |
| 112 |
(?i:string\ +parameter) { return(TOKSTRINGPARAMETER); } |
| 113 |
(?i:min) { yylval->string=strdup(yytext); return(TOKMIN); } |
| 114 |
(?i:max) { yylval->string=strdup(yytext); return(TOKMAX); } |
| 115 |
(?i:none) { yylval->string=strdup(yytext); return(TOKNONE); } |
| 116 |
|
| 117 |
/* Visual Marker */ |
| 118 |
|
| 119 |
/* Experimental Operation */ |
| 120 |
|
| 121 |
(?i:experimental\ +operation) { return(TOKEXPERIMENTALOPERATION); } |
| 122 |
(?i:type) { return(TOKTYPE); } |
| 123 |
(?i:vector\ +opparam) { return(TOKVECTOROPPARAM); } |
| 124 |
(?i:scalar\ +opparam) { return(TOKSCALAROPPARAM); } |
| 125 |
(?i:integer\ +opparam) { return(TOKINTEGEROPPARAM); } |
| 126 |
(?i:string\ +opparam) { return(TOKSTRINGOPPARAM); } |
| 127 |
|
| 128 |
/* Experimental Operation */ |
| 129 |
|
| 130 |
/* Calculator */ |
| 131 |
|
| 132 |
(?i:calculator) { return(TOKCALCULATOR); } |
| 133 |
(?i:output\ +variable\ +name) { return(TOKOUTPUTVARIABLENAME); } |
| 134 |
(?i:function) { return(TOKFUNCTION); } |
| 135 |
(?i:element\ +or\ +node\ +data) { return(TOKELEMENTORNODEDATA); } |
| 136 |
(?i:coordinate\ +result\ +flag) { return(TOKCOORDINATERESULTFLAG); } |
| 137 |
(?i:result\ +normals\ +flag) { return(TOKRESULTNORMALSFLAG); } |
| 138 |
(?i:python\ +calculator\ +flag) { return(TOKPYTHONCALCULATORFLAG); } |
| 139 |
|
| 140 |
/* Calculator */ |
| 141 |
|
| 142 |
/* Warp By Vector */ |
| 143 |
|
| 144 |
(?i:warpbyvector) { return(TOKWARPBYVECTOR); } |
| 145 |
(?i:variable\ +vector) { return(TOKVARIABLEVECTOR); } |
| 146 |
|
| 147 |
/* Warp By Vector */ |
| 148 |
|
| 149 |
/* Transform */ |
| 150 |
|
| 151 |
(?i:transform) { return(TOKTRANSFORM); } |
| 152 |
(?i:rotate) { return(TOKROTATE); } |
| 153 |
(?i:scale) { return(TOKSCALE); } |
| 154 |
(?i:translate) { return(TOKTRANSLATE); } |
| 155 |
|
| 156 |
/* Transform */ |
| 157 |
|
| 158 |
/* Extract Block */ |
| 159 |
|
| 160 |
(?i:extractblock) { return(TOKEXTRACTBLOCK); } |
| 161 |
(?i:include\ +blocks) { return(TOKINCLUDEBLOCKS); } |
| 162 |
(?i:exclude\ +blocks) { return(TOKEXCLUDEBLOCKS); } |
| 163 |
|
| 164 |
/* Extract Block */ |
| 165 |
|
| 166 |
/* Group */ |
| 167 |
|
| 168 |
(?i:operation\ +group\ +list) { return(TOKOPERATIONGROUPLIST); } |
| 169 |
(?i:group) { return(TOKGROUP); } |
| 170 |
|
| 171 |
/* Group */ |
| 172 |
|
| 173 |
/* Plot Over Time */; |
| 174 |
|
| 175 |
(?i:plot\ +id) { return(TOKPLOTID); } |
| 176 |
(?i:plot\ +mean) { return(TOKPLOTMEAN); } |
| 177 |
(?i:plot\ +maximum) { return(TOKPLOTMAXIMUM); } |
| 178 |
(?i:plot\ +minimum) { return(TOKPLOTMINIMUM); } |
| 179 |
(?i:plot\ +over\ +time) { return(TOKPLOTOVERTIME); } |
| 180 |
|
| 181 |
/* Plot Over Time */; |
| 182 |
|
| 183 |
/* Scatter Plot */; |
| 184 |
|
| 185 |
(?i:plot\ +basedirectory) { return(TOKPLOTBASEDIRECTORY); } |
| 186 |
(?i:plot\ +basename) { return(TOKPLOTBASENAME); } |
| 187 |
(?i:y\ +axis\ +maximum\ +range) { return(TOKYAXISMAXIMUMRANGE); } |
| 188 |
(?i:x\ +axis\ +maximum\ +range) { return(TOKXAXISMAXIMUMRANGE); } |
| 189 |
(?i:y\ +axis\ +minimum\ +range) { return(TOKYAXISMINIMUMRANGE); } |
| 190 |
(?i:x\ +axis\ +minimum\ +range) { return(TOKXAXISMINIMUMRANGE); } |
| 191 |
(?i:y\ +axis\ +use\ +cumulative\ +data\ +range) { return(TOKYAXISUSECUMULATIVEDATARANGE); } |
| 192 |
(?i:x\ +axis\ +use\ +cumulative\ +data\ +range) { return(TOKXAXISUSECUMULATIVEDATARANGE); } |
| 193 |
(?i:y\ +axis\ +use\ +current\ +data\ +range) { return(TOKYAXISUSECURRENTDATARANGE); } |
| 194 |
(?i:x\ +axis\ +use\ +current\ +data\ +range) { return(TOKXAXISUSECURRENTDATARANGE); } |
| 195 |
(?i:y\ +axis\ +range) { return(TOKYAXISRANGE); } |
| 196 |
(?i:x\ +axis\ +range) { return(TOKXAXISRANGE); } |
| 197 |
(?i:y\ +axis\ +variable\ +tensor\ +component) { return(TOKYAXISVARIABLETENSORCOMPONENT); } |
| 198 |
(?i:x\ +axis\ +variable\ +tensor\ +component) { return(TOKXAXISVARIABLETENSORCOMPONENT); } |
| 199 |
(?i:y\ +axis\ +variable\ +vector\ +component) { return(TOKYAXISVARIABLEVECTORCOMPONENT); } |
| 200 |
(?i:x\ +axis\ +variable\ +vector\ +component) { return(TOKXAXISVARIABLEVECTORCOMPONENT); } |
| 201 |
(?i:y\ +axis\ +variable\ +vector\ +magnitude) { return(TOKYAXISVARIABLEVECTORMAGNITUDE); } |
| 202 |
(?i:x\ +axis\ +variable\ +vector\ +magnitude) { return(TOKXAXISVARIABLEVECTORMAGNITUDE); } |
| 203 |
(?i:y\ +axis\ +variable\ +scalar) { return(TOKYAXISVARIABLESCALAR); } |
| 204 |
(?i:x\ +axis\ +variable\ +scalar) { return(TOKXAXISVARIABLESCALAR); } |
| 205 |
(?i:all\ +variables) { return(TOKALLVARIABLES); } |
| 206 |
(?i:scatter\ +plot) { return(TOKSCATTERPLOT); } |
| 207 |
|
| 208 |
/* Scatter Plot */; |
| 209 |
|
| 210 |
/* Contour */; |
| 211 |
|
| 212 |
(?i:contour\ +value\ +sequence) { return(TOKCONTOURVALUESEQUENCE); } |
| 213 |
(?i:contour\ +value) { return(TOKCONTOURVALUE); } |
| 214 |
(?i:end\ +contour) { return(TOKENDCONTOUR); } |
| 215 |
|
| 216 |
/* Contour */; |
| 217 |
|
| 218 |
/* Threshold */; |
| 219 |
|
| 220 |
(?i:variable\ +tensor\ +component) { return(TOKVARIABLETENSORCOMPONENT); } |
| 221 |
(?i:variable\ +vector\ +component) { return(TOKVARIABLEVECTORCOMPONENT); } |
| 222 |
(?i:variable\ +vector\ +magnitude) { return(TOKVARIABLEVECTORMAGNITUDE); } |
| 223 |
(?i:variable\ +scalar) { return(TOKVARIABLESCALAR); } |
| 224 |
(?i:end\ +threshold) { return(TOKENDTHRESHOLD); } |
| 225 |
|
| 226 |
/* Threshold */; |
| 227 |
|
| 228 |
/* BloxClip */; |
| 229 |
|
| 230 |
(?i:keep\ +inside\ +box) { return(TOKKEEPINSIDEBOX); } |
| 231 |
(?i:rotations) { return(TOKROTATIONS); } |
| 232 |
(?i:relative\ +extents) { return(TOKRELATIVEEXTENTS); } |
| 233 |
(?i:absolute\ +extents) { return(TOKABSOLUTEEXTENTS); } |
| 234 |
(?i:center\ +at\ +element) { return(TOKCENTERATELEMENT); } |
| 235 |
(?i:center\ +at\ +node) { return(TOKCENTERATNODE); } |
| 236 |
(?i:center\ +at\ +relative\ +point) { return(TOKCENTERATRELATIVEPOINT); } |
| 237 |
(?i:center\ +at\ +absolute\ +point) { return(TOKCENTERATABSOLUTEPOINT); } |
| 238 |
(?i:end\ +boxclip) { return(TOKENDBOXCLIP); } |
| 239 |
(?i:center\ +at\ data\ +point) { return(TOKCENTERATDATAPOINT); } |
| 240 |
|
| 241 |
/* BoxClip */; |
| 242 |
|
| 243 |
/* Slice */; |
| 244 |
|
| 245 |
(?i:end\ +slice) { return(TOKENDSLICE); } |
| 246 |
|
| 247 |
/* Slice */; |
| 248 |
|
| 249 |
/* Clip */; |
| 250 |
|
| 251 |
(?i:negative) { yylval->string=strdup(yytext); return(TOKNEGATIVE); } |
| 252 |
(?i:positive) { yylval->string=strdup(yytext); return(TOKPOSITIVE); } |
| 253 |
(?i:smooth) { yylval->string=strdup(yytext); return(TOKSMOOTH); } |
| 254 |
(?i:crinkle) { yylval->string=strdup(yytext); return(TOKCRINKLE); } |
| 255 |
(?i:side\ +to\ +keep) { return(TOKSIDETOKEEP); } |
| 256 |
(?i:cut\ +type) { return(TOKCUTTYPE); } |
| 257 |
(?i:plane\ +normal) { return(TOKPLANENORMAL); } |
| 258 |
(?i:element\ +on\ +plane) { return(TOKELEMENTONPLANE); } |
| 259 |
(?i:node\ +on\ +plane) { return(TOKNODEONPLANE); } |
| 260 |
(?i:relative\ +point\ +on\ +plane) { return(TOKRELATIVEPOINTONPLANE); } |
| 261 |
(?i:absolute\ +point\ +on\ +plane) { return(TOKABSOLUTEPOINTONPLANE); } |
| 262 |
(?i:input) { return(TOKINPUT); } |
| 263 |
(?i:end\ +clip) { return(TOKENDCLIP); } |
| 264 |
(?i:data\ +point\ on\ +plane) { return(TOKDATAPOINTONPLANE); } |
| 265 |
(?i:plane\ +specification) { return(TOKPLANESPECIFICATION); } |
| 266 |
(?i:three\ +points) { return(TOKTHREEPOINTS); } |
| 267 |
(?i:point\ +and\ +normal) { return(TOKPOINTANDNORMAL); } |
| 268 |
(?i:a) { yylval->string=strdup(yytext); return(TOKA); } |
| 269 |
(?i:b) { yylval->string=strdup(yytext); return(TOKB); } |
| 270 |
(?i:c) { yylval->string=strdup(yytext); return(TOKC); } |
| 271 |
|
| 272 |
/* Clip */; |
| 273 |
|
| 274 |
/* ImageSet */; |
| 275 |
|
| 276 |
(?i:center) { yylval->string=strdup(yytext); return(TOKCENTER); } |
| 277 |
(?i:point) { return(TOKPOINT); } |
| 278 |
(?i:keep\ +outside) { yylval->string=strdup(yytext); return(TOKKEEPOUTSIDE); } |
| 279 |
(?i:keep\ +inside) { yylval->string=strdup(yytext); return(TOKKEEPINSIDE); } |
| 280 |
(?i:slice) { return(TOKSLICE); } |
| 281 |
(?i:boxclip) { return(TOKBOXCLIP); } |
| 282 |
(?i:extents) { return(TOKEXTENTS); } |
| 283 |
(?i:normal) { return(TOKNORMAL); } |
| 284 |
(?i:clip) { return(TOKCLIP); } |
| 285 |
(?i:value\ +sequence) { yylval->string=strdup(yytext); return(TOKVALUESEQUENCE); } |
| 286 |
(?i:value\ +list) { yylval->string=strdup(yytext); return(TOKVALUELIST); } |
| 287 |
(?i:contour) { return(TOKCONTOUR); } |
| 288 |
(?i:keep\ +below) { yylval->string=strdup(yytext); return(TOKKEEPBELOW); } |
| 289 |
(?i:keep\ +above) { yylval->string=strdup(yytext); return(TOKKEEPABOVE); } |
| 290 |
(?i:keep\ +between) { yylval->string=strdup(yytext); return(TOKKEEPBETWEEN); } |
| 291 |
(?i:tensor\ +component) { yylval->string=strdup(yytext); return(TOKTENSORCOMPONENT); } |
| 292 |
(?i:vector\ +component) { yylval->string=strdup(yytext); return(TOKVECTORCOMPONENT); } |
| 293 |
(?i:vector\ +magnitude) { yylval->string=strdup(yytext); return(TOKVECTORMAGNITUDE); } |
| 294 |
(?i:scalar) { yylval->string=strdup(yytext); return(TOKSCALAR); } |
| 295 |
(?i:threshold) { return(TOKTHRESHOLD); } |
| 296 |
(?i:axes\ +color) { return(TOKAXESCOLOR); } |
| 297 |
(?i:text\ +color) { return(TOKTEXTCOLOR); } |
| 298 |
(?i:edge\ +color) { return(TOKEDGECOLOR); } |
| 299 |
(?i:surface\ +color) { return(TOKSURFACECOLOR); } |
| 300 |
(?i:background\ +color) { return(TOKBACKGROUNDCOLOR); } |
| 301 |
(?i:image\ +size) { return(TOKIMAGESIZE); } |
| 302 |
(?i:image\ +digit\ +count) { return(TOKIMAGEDIGITCOUNT); } |
| 303 |
(?i:png) { return(TOKPNG); } |
| 304 |
(?i:jpg) { return(TOKJPG); } |
| 305 |
(?i:image\ +format) { return(TOKIMAGEFORMAT); } |
| 306 |
(?i:image\ +basedirectory) { return(TOKIMAGEBASEDIRECTORY); } |
| 307 |
(?i:image\ +basename) { return(TOKIMAGEBASENAME); } |
| 308 |
(?i:operation) { return(TOKOPERATION); } |
| 309 |
(?i:operation2) { return(TOKOPERATION2); } |
| 310 |
(?i:operation3) { return(TOKOPERATION3); } |
| 311 |
(?i:imageset) { return(TOKIMAGESET); } |
| 312 |
(?i:onoff\ +criteria) { return(TOKONOFFCRITERIA); } |
| 313 |
(?i:markers) { return(TOKMARKERS); } |
| 314 |
|
| 315 |
/* ImageSet */; |
| 316 |
|
| 317 |
/* Camera */; |
| 318 |
|
| 319 |
(?i:camera\ +at\ +data\ +point\ +displaced) { return(TOKCAMERAATDATAPOINTDISPLACED); } |
| 320 |
(?i:camera\ +at\ +data\ +point) { return(TOKCAMERAATDATAPOINT); } |
| 321 |
(?i:camera\ +at\ +node\ +displaced) { return(TOKCAMERAATNODEDISPLACED); } |
| 322 |
(?i:camera\ +at\ +element\ +displaced) { return(TOKCAMERAATELEMENTDISPLACED); } |
| 323 |
(?i:camera\ +at\ +node) { return(TOKCAMERAATNODE); } |
| 324 |
(?i:camera\ +at\ +element) { return(TOKCAMERAATELEMENT); } |
| 325 |
(?i:camera\ +at\ +relative\ +point) { return(TOKCAMERAATRELATIVEPOINT); } |
| 326 |
(?i:camera\ +at\ +absolute\ +point) { return(TOKCAMERAATABSOLUTEPOINT); } |
| 327 |
(?i:look\ +direction) { return(TOKLOOKDIRECTION); } |
| 328 |
(?i:camera) { return(TOKCAMERA); } |
| 329 |
|
| 330 |
/* Camera */; |
| 331 |
|
| 332 |
/* MultiCamera8 */; |
| 333 |
|
| 334 |
(?i:camera\ +fov) { return(TOKCAMERAFOV); } |
| 335 |
(?i:up\ +vector) { return(TOKUPVECTOR); } |
| 336 |
(?i:look\ +at\ +relative\ +distance) { return(TOKLOOKATRELATIVEDISTANCE); } |
| 337 |
(?i:look\ +at\ +absolute\ +distance) { return(TOKLOOKATABSOLUTEDISTANCE); } |
| 338 |
(?i:look\ +at\ +node) { return(TOKLOOKATNODE); } |
| 339 |
(?i:look\ +at\ +element) { return(TOKLOOKATELEMENT); } |
| 340 |
(?i:look\ +at\ +relative\ +point) { return(TOKLOOKATRELATIVEPOINT); } |
| 341 |
(?i:look\ +at\ +absolute\ +point) { return(TOKLOOKATABSOLUTEPOINT); } |
| 342 |
(?i:multicamera8) { return(TOKMULTICAMERA8); } |
| 343 |
|
| 344 |
/* MultiCamera8 */; |
| 345 |
|
| 346 |
/* Representation */; |
| 347 |
|
| 348 |
(?i:highlight\ +subrange) { return(TOKHIGHLIGHTSUBRANGE); } |
| 349 |
(?i:color\ +legend\ +subrange) { return(TOKCOLORLEGENDSUBRANGE); } |
| 350 |
(?i:image\ +name\ +addon) { return(TOKIMAGENAMEADDON); } |
| 351 |
(?i:show\ +orientation\ +axes) { return(TOKSHOWORIENTATIONAXES); } |
| 352 |
(?i:show\ +z\ +axis\ +tic\ +mark\ +labels) { return(TOKSHOWZAXISTICMARKLABELS); } |
| 353 |
(?i:show\ +y\ +axis\ +tic\ +mark\ +labels) { return(TOKSHOWYAXISTICMARKLABELS); } |
| 354 |
(?i:show\ +x\ +axis\ +tic\ +mark\ +labels) { return(TOKSHOWXAXISTICMARKLABELS); } |
| 355 |
(?i:show\ +z\ +axis\ +minor\ +tic\ +marks) { return(TOKSHOWZAXISMINORTICMARKS); } |
| 356 |
(?i:show\ +y\ +axis\ +minor\ +tic\ +marks) { return(TOKSHOWYAXISMINORTICMARKS); } |
| 357 |
(?i:show\ +x\ +axis\ +minor\ +tic\ +marks) { return(TOKSHOWXAXISMINORTICMARKS); } |
| 358 |
(?i:show\ +z\ +axis\ +tic\ +marks) { return(TOKSHOWZAXISTICMARKS); } |
| 359 |
(?i:show\ +y\ +axis\ +tic\ +marks) { return(TOKSHOWYAXISTICMARKS); } |
| 360 |
(?i:show\ +x\ +axis\ +tic\ +marks) { return(TOKSHOWXAXISTICMARKS); } |
| 361 |
(?i:z\ +axis\ +label\ +name) { return(TOKZAXISLABELNAME); } |
| 362 |
(?i:y\ +axis\ +label\ +name) { return(TOKYAXISLABELNAME); } |
| 363 |
(?i:x\ +axis\ +label\ +name) { return(TOKXAXISLABELNAME); } |
| 364 |
(?i:show\ +z\ +axis\ +label) { return(TOKSHOWZAXISLABEL); } |
| 365 |
(?i:show\ +y\ +axis\ +label) { return(TOKSHOWYAXISLABEL); } |
| 366 |
(?i:show\ +x\ +axis\ +label) { return(TOKSHOWXAXISLABEL); } |
| 367 |
(?i:show\ +axes) { return(TOKSHOWAXES); } |
| 368 |
(?i:time\ +annotation\ +position) { return(TOKTIMEANNOTATIONPOSITION); } |
| 369 |
(?i:show\ +time\ +annotation) { return(TOKSHOWTIMEANNOTATION); } |
| 370 |
(?i:invert\ +color\ +scale) { return(TOKINVERTCOLORSCALE); } |
| 371 |
(?i:preset\ +color\ +scale) { return(TOKPRESETCOLORSCALE); } |
| 372 |
(?i:color\ +legend\ +position) { return(TOKCOLORLEGENDPOSITION); } |
| 373 |
(?i:color\ +legend\ +maximum\ +range) { return(TOKCOLORLEGENDMAXIMUMRANGE); } |
| 374 |
(?i:color\ +legend\ +minimum\ +range) { return(TOKCOLORLEGENDMINIMUMRANGE); } |
| 375 |
(?i:color\ +legend\ +use\ +cumulative\ +data\ +range) { return(TOKCOLORLEGENDUSECUMULATIVEDATARANGE); } |
| 376 |
(?i:color\ +legend\ +use\ +current\ +data\ +range) { return(TOKCOLORLEGENDUSECURRENTDATARANGE); } |
| 377 |
(?i:color\ +legend\ +range) { return(TOKCOLORLEGENDRANGE); } |
| 378 |
(?i:show\ +color\ +legend) { return(TOKSHOWCOLORLEGEND); } |
| 379 |
(?i:color\ +by\ +blockid) { return(TOKCOLORBYBLOCKID); } |
| 380 |
(?i:color\ +by\ +solid\ +color) { return(TOKCOLORBYSOLIDCOLOR); } |
| 381 |
(?i:color\ +by\ +tensor\ +component) { return(TOKCOLORBYTENSORCOMPONENT); } |
| 382 |
(?i:color\ +by\ +vector\ +component) { return(TOKCOLORBYVECTORCOMPONENT); } |
| 383 |
(?i:color\ +by\ +vector\ +magnitude) { return(TOKCOLORBYVECTORMAGNITUDE); } |
| 384 |
(?i:color\ +by\ +scalar) { return(TOKCOLORBYSCALAR); } |
| 385 |
(?i:show\ +bounding\ +box) { return(TOKSHOWBOUNDINGBOX); } |
| 386 |
(?i:show\ +edges) { return(TOKSHOWEDGES); } |
| 387 |
(?i:show\ +surfaces) { return(TOKSHOWSURFACES); } |
| 388 |
(?i:top) { yylval->string=strdup(yytext); return(TOKTOP); } |
| 389 |
(?i:left) { yylval->string=strdup(yytext); return(TOKLEFT); } |
| 390 |
(?i:bottom) { yylval->string=strdup(yytext); return(TOKBOTTOM); } |
| 391 |
(?i:right) { yylval->string=strdup(yytext); return(TOKRIGHT); } |
| 392 |
(?i:top\ +left) { yylval->string=strdup(yytext); return(TOKTOPLEFT); } |
| 393 |
(?i:top\ +right) { yylval->string=strdup(yytext); return(TOKTOPRIGHT); } |
| 394 |
(?i:bottom\ +left) { yylval->string=strdup(yytext); return(TOKBOTTOMLEFT); } |
| 395 |
(?i:bottom\ +right) { yylval->string=strdup(yytext); return(TOKBOTTOMRIGHT); } |
| 396 |
(?i:representation) { return(TOKREPRESENTATION); } |
| 397 |
(?i:representation2) { return(TOKREPRESENTATION2); } |
| 398 |
(?i:representation3) { return(TOKREPRESENTATION3); } |
| 399 |
|
| 400 |
/* Representation */; |
| 401 |
|
| 402 |
/* Catalyst */; |
| 403 |
|
| 404 |
(?i:catalyst) { return(TOKCATALYST); } |
| 405 |
(?i:begin) { return(TOKBEGIN); } |
| 406 |
(?i:end) { return(TOKEND); } |
| 407 |
|
| 408 |
/* Catalyst */; |
| 409 |
|
| 410 |
"=" { return(TOKEQUAL); } |
| 411 |
(?i:node) { yylval->string=strdup(yytext); return(TOKNODE); } |
| 412 |
(?i:element) { yylval->string=strdup(yytext); return(TOKELEMENT); } |
| 413 |
(?i:false) { yylval->integer=0; return(TOKFALSE); } |
| 414 |
(?i:true) { yylval->integer=1; return(TOKTRUE); } |
| 415 |
[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)? { yylval->floating=atof(yytext); return(TOKVALUE); } |
| 416 |
[_\-a-zA-Z][a-zA-Z0-9_\.-\[\]\*\(\)\?!&\^%@~\+\\]* { yylval->string=strdup(yytext); return(TOKIDENTIFIER); } |
| 417 |
\"(\\.|[^\\"\n])*\" { yylval->string=strdup(yytext); return(TOKSTRING); } |
| 418 |
[#|$].* { } |
| 419 |
[ \t\v\f\n]+ { } |
| 420 |
|
| 421 |
%% |