Changeset b1d6dd5 for src/main.cc
- Timestamp:
- Jun 11, 2015, 12:15:54 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- eff0cad0
- Parents:
- 8a95629
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r8a95629 rb1d6dd5 9 9 // Author : Richard C. Bilson 10 10 // Created On : Fri May 15 23:12:02 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : T ue Jun 09 15:10:05201513 // Update Count : 6 811 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jun 11 11:06:04 2015 13 // Update Count : 69 14 14 // 15 15 … … 71 71 errorp = false; 72 72 73 enum { Ast, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, P rototypes, Resolver, Symbol, Parse, };73 enum { Ast, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Validate, }; 74 74 75 75 static struct option long_opts[] = { … … 80 80 { "libcfa", no_argument, 0, LibCFA }, 81 81 { "nopreamble", no_argument, 0, Nopreamble }, 82 { "parse", no_argument, 0, Parse }, 82 83 { "prototypes", no_argument, 0, Prototypes }, 83 84 { "resolver", no_argument, 0, Resolver }, 84 85 { "symbol", no_argument, 0, Symbol }, 85 { " parse", no_argument, 0, Parse },86 { "validate", no_argument, 0, Validate }, 86 87 { 0, 0, 0, 0 } 87 88 }; … … 96 97 97 98 int c; 98 while ( (c = getopt_long( argc, argv, "aefglnpqrs xyzD:", long_opts, &long_index )) != -1 ) {99 while ( (c = getopt_long( argc, argv, "aefglnpqrsvyzD:", long_opts, &long_index )) != -1 ) { 99 100 switch ( c ) { 100 101 case Ast: … … 138 139 symtabp = true; 139 140 break; 140 case ' x': // dump AST after decl validation pass141 case 'v': // dump AST after decl validation pass 141 142 validp = true; 142 143 break;
Note: See TracChangeset
for help on using the changeset viewer.