Changeset 678
- Timestamp:
- 2001-12-11T15:05:13+01:00 (22 years ago)
- Location:
- branches/pdetest-levsa/modeq
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pdetest-levsa/modeq/ast/Makefile
r489 r678 32 32 #AFLAGS = -CC -gt 33 33 #AFLAGS = -gt -gl 34 AFLAGS = -gt -g l -gh34 AFLAGS = -gt -gh 35 35 #DFLAGS = -C2 -CC -cs 36 36 DFLAGS = -C2 … … 41 41 yacclib.c \ 42 42 attrib.c \ 43 parsemod.c 43 parsemod.c \ 44 dump.c 44 45 OBJ = $(SRC:.c=.o) 45 46 ANTLR_SPAWN = modgram.c \ -
branches/pdetest-levsa/modeq/ast/parsemod.c
r333 r678 6 6 #include "yacclib.h" 7 7 #include <errno.h> 8 #include "dump.h" 9 10 extern int dump_ast; /* defined in ../runtime/rtopts.c */ 8 11 9 12 /* Also see rml-1.3.6/examples/etc/ccall.c */ … … 20 23 fprintf(stderr,"*"); 21 24 22 if(zzchild(ast)) 25 if(zzchild(ast)) { 23 26 fprintf(stderr,"("); 24 else if(zzsibling(ast)) 27 print_token(zzchild(ast)); 28 } 29 else if(zzsibling(ast)) { 25 30 fprintf(stderr,","); 31 print_token(zzsibling(ast)); 32 } 26 33 } 27 34 … … 79 86 /* if( !root ) 80 87 * RML_TAILCALLK(rmlFC); */ 81 88 89 if (dump_ast) 90 dump(root); 82 91 rmlA0 = sibling_list(root); 83 92 -
branches/pdetest-levsa/modeq/runtime/rtopts.c
r573 r678 11 11 static int debug_flag_info; 12 12 static int params_struct; 13 int dump_ast; 14 13 15 14 16 static char **debug_flags; … … 25 27 params_struct = 0; 26 28 debug_all = 0; 29 dump_ast = 0; 27 30 } 28 31 … … 113 116 } 114 117 break; 118 case 'r': 119 dump_ast = 1; 120 break; 115 121 default: 116 122 fprintf(stderr, "# Unknown option: %s\n", arg); … … 192 198 193 199 200 RML_BEGIN_LABEL(RTOpts__dump_5fast) 201 { 202 rmlA0 = RML_PRIM_MKBOOL(dump_ast); 203 RML_TAILCALLK(rmlSC); 204 } 205 RML_END_LABEL 206
Note: See TracChangeset
for help on using the changeset viewer.