FreeFem  3.5.x
List of all members
fem::femParser Class Reference

provides the syntaxical analysis More...

#include <femParser.hpp>

Public Types

Enums
enum  GraphicsType { FEM_GRAPHIC = 0, FEM_NO_GRAPHIC = 1 }
 graphics type More...
 

Public Member Functions

Constructors and destructor
 femParser ()
 default constructor More...
 
 ~femParser ()
 destructor
 
Mutators
void setGraphicType (GraphicsType gt)
 set the graphic type
 
void setText (const char *__t)
 set the buffer to be parsed
 

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
 
static femParserNew ()
 create a new instance
 

Detailed Description

provides the syntaxical analysis

The syntaxic analyser works closely with the lexical analyser.

Author
Christophe Prud'homme prudh.nosp@m.omm@.nosp@m.ann.j.nosp@m.ussi.nosp@m.eu.fr
Version
Id
femParser.hpp 206 2006-07-30 16:52:02Z prudhomm

Member Enumeration Documentation

graphics type

Enumerator
FEM_GRAPHIC 

show the graphics

FEM_NO_GRAPHIC 

do not show the graphics

102  {
103  FEM_GRAPHIC = 0,
104  FEM_NO_GRAPHIC = 1
105  };
show the graphics
Definition: femParser.hpp:103
do not show the graphics
Definition: femParser.hpp:104

Constructor & Destructor Documentation

fem::femParser::femParser ( )

default constructor

Parameters
__tstring to be parsed by the analyser
124  :
125  __tree(),
126  __function_list(),
127  __mesh(),
128  __graph( new femGraphicDeviceIndependent( &__mesh ) ),
129  pt( 0 ),
130  nbsd( 0 ),
131  nbs( 0 ),
132  nba( 0 ),
133  Iter( 1 ),
134  waitm( 0 ),
135  __text( 0 ),
136  __graphic_type( FEM_GRAPHIC )
137 {
138  numnoeuds = 0;
139  waitm = 1;
140  pt = NULL;
141  noeuds = new noeudPtr[MAXTREENODES];
142  sd = new long[2*MAXSD];
143  arete = new long[2 * MAXBDYVERTEX];
144  ngbdy = new int[MAXBDYVERTEX];
145  cr = new float[2*MAXBDYVERTEX+1];
146  hh = new float[MAXBDYVERTEX];
147  memset (hh, 0, MAXBDYVERTEX*sizeof(float));
148  flag.si = 0;
149  flag.syst = 0;
150  flag.param = 0;
151  flag.complexe = 0;
152  flag.precise = 0;
153 }
show the graphics
Definition: femParser.hpp:103

The documentation for this class was generated from the following files:

This is the FreeFEM reference manual
Provided by The KFEM project