Permalink
Browse files

Fixed compilation error in main.cpp and added error message argument …

…for printf.
  • Loading branch information...
1 parent 38fad25 commit 4ca4974968b74a40466b1fa2e23f3d266f1a4d1e Sergiy Dubovik committed Sep 19, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 main.cpp
  2. +1 −1 parser.y
View
@@ -11,7 +11,7 @@ int main(int argc, char **argv)
{
yyparse();
std::cout << programBlock << endl;
- # see http://comments.gmane.org/gmane.comp.compilers.llvm.devel/33877
+ // see http://comments.gmane.org/gmane.comp.compilers.llvm.devel/33877
InitializeNativeTarget();
CodeGenContext context;
context.generateCode(*programBlock);
View
@@ -5,7 +5,7 @@
NBlock *programBlock; /* the top level root node of our final AST */
extern int yylex();
- void yyerror(const char *s) { std::printf("Error: %s\n");std::exit(1); }
+ void yyerror(const char *s) { std::printf("Error: %s\n", s);std::exit(1); }
%}
/* Represents the many different ways we can access our data */

0 comments on commit 4ca4974

Please sign in to comment.