14 #include "readcuiksystem.tab.h"
16 int Readcuiksystemlex(
void);
27 R_NUMBER (({DIGIT}+(\.{DIGIT}+)?)|(\.{DIGIT}+))((E|e)[+-]?{DIGIT}+)?
29 IDENTIFIER {LETTER}({DIGIT}|{LETTER}|
"_")*
30 COMMENT \%[^{\n|\r\n|\{}]*
31 COMMENT2 \#[^{\n|\r\n|\{}]*
32 COMMENT3 \/\/[^{\n|\r\n|\{}]*
40 "/*" BEGIN(IN_COMMENT);
63 return(_SECONDARY_VARS);
71 return(_CARTESIAN_VARS);
291 char string_tmp[100];
293 memcpy(string_tmp,Readcuiksystemtext,(
unsigned int)Readcuiksystemleng);
294 string_tmp[Readcuiksystemleng]=0;
295 Readcuiksystemlval.int_number=atoi(string_tmp);
300 char string_tmp[100];
302 memcpy(string_tmp,Readcuiksystemtext,(
unsigned int)Readcuiksystemleng);
303 string_tmp[Readcuiksystemleng]=0;
304 Readcuiksystemlval.real_number=atof(string_tmp);
310 NEW(Readcuiksystemlval.id,Readcuiksystemleng+1,
char);
311 memcpy(Readcuiksystemlval.id,Readcuiksystemtext,(
unsigned int)Readcuiksystemleng);
313 Readcuiksystemlval.id[Readcuiksystemleng]=0;
322 . {
return(Readcuiksystemtext[0]); }
#define NEW(_var, _n, _type)
Allocates memory space.
Error and warning functions.
int Readcuiksystemwrap()
Function called at the end of the parsing process.
Definitions of constants and macros used in several parts of the cuik library.
Definition of data types shared between the lexical and the syntactical analizer for ...
int Readcuiksystemerror(const char *s)
Syntax errors in .cuik files.
#define PA
Point on a patch.
#define TV
Displacement along a vector.
unsigned int RCSline
Number of the line currently parsed when reading a .cuik file.
Follow us!