Lines Matching defs:code

28 #define MAXRHS 5       /* Set low to exercise exception code */
140 int destructorln; /* Line number of destructor code */
157 int line; /* Line number at which code begins */
158 char *code; /* The code executed when this rule is reduced */
249 int includeln; /* Line number for start of include code */
251 int errorln; /* Line number for start of error code */
253 int overflowln; /* Line number for start of overflow code */
255 int failureln; /* Line number for start of failure code */
257 int acceptln; /* Line number for the start of accept code */
259 int extracodeln; /* Line number for the start of the extra code */
261 int tokendestln; /* Line number for token destroyer code */
263 int vardestln; /* Line number for default non-term destructor code*/
281 ** All code in this file has been automatically generated
284 ** by the associative array code building program "aagen".
394 /********************** New code to implement the "acttab" module ***********/
1427 /* Generate the source code for the parser */
1930 "There is not prior rule opon which to attach the code \
1933 }else if( psp->prevrule->code!=0 ){
1940 psp->prevrule->code = &x[1];
2046 rp->code = 0;
2115 }else if( strcmp(x,"code")==0 ){
2361 }else if( c=='{' ){ /* A block of C code */
2394 "C code starting on this line is not terminated before the end of the file.");
2573 /* if( rp->code ) printf("\n %s",rp->code); */
2866 ** The following routine emits code for the destructor for the
2923 ** Generate code which executes when the rule "rp" is reduced. Write
2924 ** the code to "out". Make sure lineno stays up-to-date.
2941 /* Generate code to do the reduce action */
2942 if( rp->code ){
2944 for(cp=rp->code; *cp; cp++){
2945 if( isalpha(*cp) && (cp==rp->code || (!isalnum(cp[-1]) && cp[-1]!='_')) ){
2971 } /* End if( rp->code ) */
2981 /* Generate destructor code for RHS symbols which are not used in the
2982 ** reduce code */
3158 /* Generate C source code for the parser */
3186 /* Generate the include code, if any */
3472 /* Generate code which executes every time a symbol is popped from
3511 /* Generate code which executes whenever the parser stack overflows */
3517 ** Note: This code depends on the fact that rules are number
3525 /* Generate code which execution during each REDUCE action */
3533 /* Generate code which executes if a parse fails */
3537 /* Generate code which executes when a syntax error occurs */
3541 /* Generate code which executes when the parser accepts its input */
3545 /* Append any addition code the user desires */
3706 ** All code in this file has been automatically generated
3709 ** by the associative array code building program "aagen".