Changeset cbaee0d for src/main.cc
- Timestamp:
- Aug 16, 2016, 9:49:29 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 5ead9f9
- Parents:
- 08ac489
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r08ac489 rcbaee0d 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Aug 16 17:47:52201613 // Update Count : 2 5212 // Last Modified On : Tue Aug 16 21:33:49 2016 13 // Update Count : 260 14 14 // 15 15 … … 55 55 LinkageSpec::Type linkage = LinkageSpec::Cforall; 56 56 TypedefTable typedefTable; 57 DeclarationNode * parseTree = nullptr; // program parse tree57 DeclarationNode * parseTree = nullptr; // program parse tree 58 58 59 59 bool … … 78 78 static void parse( FILE * input, LinkageSpec::Type t, bool shouldExit = false ); 79 79 static void dump( std::list< Declaration * > & translationUnit, std::ostream & out = std::cout ); 80 static void parse_cmdline( int argc, char *argv[], const char *& filename );81 82 83 int main( int argc, char * argv[] ) {84 FILE * input;85 std::ostream *output = & std::cout;80 static void parse_cmdline( int argc, char *argv[], const char *& filename ); 81 82 83 int main( int argc, char * argv[] ) { 84 FILE * input; 85 std::ostream *output = & std::cout; 86 86 std::list< Declaration * > translationUnit; 87 87 const char *filename = NULL; … … 155 155 buildList( parseTree, translationUnit ); 156 156 delete parseTree; 157 parseTree = nullptr; 157 158 158 159 if ( astp ) { … … 268 269 } // main 269 270 270 void parse_cmdline( int argc, char * argv[], const char *&filename ) {271 void parse_cmdline( int argc, char * argv[], const char *& filename ) { 271 272 enum { Ast, Bbox, Bresolver, CtorInitFix, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, Validate, }; 272 273 … … 376 377 static void parse( FILE * input, LinkageSpec::Type link, bool shouldExit ) { 377 378 extern int yyparse( void ); 378 extern FILE * yyin;379 extern FILE * yyin; 379 380 extern int yylineno; 380 381
Note: See TracChangeset
for help on using the changeset viewer.