14 #include "readcuiksystem.tab.h"
16 int Readcuiksystemlex(
void);
29 R_NUMBER (({DIGIT}+(\.{DIGIT}+)?)|(\.{DIGIT}+))((E|e)[+-]?{DIGIT}+)?
31 IDENTIFIER {LETTER}({DIGIT}|{LETTER}|
"_")*
32 COMMENT \%[^{\n|\r\n|\{}]*
33 COMMENT2 \#[^{\n|\r\n|\{}]*
34 COMMENT3 \/\/[^{\n|\r\n|\{}]*
42 "/*" BEGIN(IN_COMMENT);
64 return(_SECONDARY_VARS);
72 return(_CARTESIAN_VARS);
244 char string_tmp[100];
246 memcpy(string_tmp,Readcuiksystemtext,(
unsigned int)Readcuiksystemleng);
247 string_tmp[Readcuiksystemleng]=0;
248 Readcuiksystemlval.int_number=atoi(string_tmp);
253 char string_tmp[100];
255 memcpy(string_tmp,Readcuiksystemtext,(
unsigned int)Readcuiksystemleng);
256 string_tmp[Readcuiksystemleng]=0;
257 Readcuiksystemlval.real_number=atof(string_tmp);
263 NEW(Readcuiksystemlval.id,Readcuiksystemleng+1,
char);
264 memcpy(Readcuiksystemlval.id,Readcuiksystemtext,(
unsigned int)Readcuiksystemleng);
266 Readcuiksystemlval.id[Readcuiksystemleng]=0;
275 . {
return(Readcuiksystemtext[0]); }
287 int Readcuiksystemwrap()
#define NEW(_var, _n, _type)
Allocates memory space.
Error and warning functions.
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!