Changeset b1d6dd5 for src/main.cc


Ignore:
Timestamp:
Jun 11, 2015, 12:15:54 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

fix parsing error for EOF message, change cfa-ccp -x flag to -v, regression testing third attempt: consolidate example programs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r8a95629 rb1d6dd5  
    99// Author           : Richard C. Bilson
    1010// Created On       : Fri May 15 23:12:02 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Tue Jun 09 15:10:05 2015
    13 // Update Count     : 68
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Thu Jun 11 11:06:04 2015
     13// Update Count     : 69
    1414//
    1515
     
    7171        errorp = false;
    7272
    73 enum { Ast, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Prototypes, Resolver, Symbol, Parse, };
     73enum { Ast, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Validate, };
    7474
    7575static struct option long_opts[] = {
     
    8080        { "libcfa", no_argument, 0, LibCFA },
    8181        { "nopreamble", no_argument, 0, Nopreamble },
     82        { "parse", no_argument, 0, Parse },
    8283        { "prototypes", no_argument, 0, Prototypes },
    8384        { "resolver", no_argument, 0, Resolver },
    8485        { "symbol", no_argument, 0, Symbol },
    85         { "parse", no_argument, 0, Parse },
     86        { "validate", no_argument, 0, Validate },
    8687        { 0, 0, 0, 0 }
    8788};
     
    9697       
    9798        int c;
    98         while ( (c = getopt_long( argc, argv, "aefglnpqrsxyzD:", long_opts, &long_index )) != -1 ) {
     99        while ( (c = getopt_long( argc, argv, "aefglnpqrsvyzD:", long_opts, &long_index )) != -1 ) {
    99100                switch ( c ) {
    100101                  case Ast:
     
    138139                        symtabp = true;
    139140                        break;
    140                   case 'x':                                                                             // dump AST after decl validation pass
     141                  case 'v':                                                                             // dump AST after decl validation pass
    141142                        validp = true;
    142143                        break;
Note: See TracChangeset for help on using the changeset viewer.