#include <femParser.hpp>
Methods | |
| void | parse () |
| parse the buffer. | |
| void | chvar (void) |
| noeudPtr | instruction (void) |
| creal | eval (noeudPtr) |
| evaluate the node. | |
| void | bucheron (noeudPtr) |
| kill the node. | |
| void | libere (void) |
| free everything. | |
| void | showtree (noeudPtr t) |
| show the tree. | |
| void | initsyntax () |
| initialise the parser. | |
| void | libereparam (void) |
| free the parameters. | |
| void | initparam () |
| init the parameters. | |
| femMeshCptr | getMesh () const |
| get the mesh. | |
| femParser * | New () |
| create a new instance. | |
Methods | |
| void | parse () |
| parse the buffer. | |
| void | chvar (void) |
| noeudPtr | instruction (void) |
| creal | eval (noeudPtr) |
| evaluate the node. | |
| void | bucheron (noeudPtr) |
| kill the node. | |
| void | libere (void) |
| free everything. | |
| void | showtree (noeudPtr t) |
| show the tree. | |
| void | initsyntax () |
| initialise the parser. | |
| void | libereparam (void) |
| free the parameters. | |
| void | initparam () |
| init the parameters. | |
| femMeshCptr | getMesh () const |
| get the mesh. | |
| femParser * | New () |
| create a new instance. | |
Public Types | |
Enums | |
| enum | GraphicsType { FEM_GRAPHIC = 0, FEM_NO_GRAPHIC } |
| graphics type. More... | |
Enums | |
| enum | GraphicsType { FEM_GRAPHIC = 0, FEM_NO_GRAPHIC } |
| graphics type. More... | |
Public Methods | |
Constructors and destructor | |
| femParser () | |
| ~femParser () | |
| destructor. | |
Mutators | |
| void | setGraphicType (GraphicsType gt) |
| set the graphic type. | |
| void | setText (const char *__t) |
| set the buffer to be parsed. | |
Constructors and destructor | |
| femParser () | |
| ~femParser () | |
| destructor. | |
Mutators | |
| void | setGraphicType (GraphicsType gt) |
| set the graphic type. | |
| void | setText (const char *__t) |
| set the buffer to be parsed. | |
The syntaxic analyser works closely with the lexical analyser.
|
|
graphics type.
00101 {
00102 FEM_GRAPHIC = 0,
00103 FEM_NO_GRAPHIC = 1
00104 };
|
|
|
graphics type.
00101 {
00102 FEM_GRAPHIC = 0,
00103 FEM_NO_GRAPHIC = 1
00104 };
|
|
|
00124 :
00125 __tree(),
00126 __function_list(),
00127 __mesh(),
00128 __graph( new femGraphicDeviceIndependent( &__mesh ) ),
00129 pt( 0 ),
00130 nbsd( 0 ),
00131 nbs( 0 ),
00132 nba( 0 ),
00133 Iter( 1 ),
00134 waitm( 0 ),
00135 __text( 0 ),
00136 __graphic_type( FEM_GRAPHIC )
00137 {
00138 numnoeuds = 0;
00139 waitm = 1;
00140 pt = NULL;
00141 noeuds = new noeudPtr[MAXTREENODES];
00142 sd = new long[2*MAXSD];
00143 arete = new long[2 * MAXBDYVERTEX];
00144 ngbdy = new int[MAXBDYVERTEX];
00145 cr = new float[2*MAXBDYVERTEX+1];
00146 hh = new float[MAXBDYVERTEX];
00147 memset (hh, 0, MAXBDYVERTEX*sizeof(float));
00148 flag.si = 0;
00149 flag.syst = 0;
00150 flag.param = 0;
00151 flag.complexe = 0;
00152 flag.precise = 0;
00153 }
|
|
|
|