Revision: 850
http://assorted.svn.sourceforge.net/assorted/?rev=850&view=rev
Author: yangzhang
Date: 2008-06-02 19:04:08 -0700 (Mon, 02 Jun 2008)
Log Message:
-----------
updated to actually work
Modified Paths:
--------------
sandbox/trunk/src/flex-bison/calc/calc.lex
sandbox/trunk/src/flex-bison/calc/calc.y
Modified: sandbox/trunk/src/flex-bison/calc/calc.lex
===================================================================
--- sandbox/trunk/src/flex-bison/calc/calc.lex 2008-06-03 01:55:57 UTC (rev 849)
+++ sandbox/trunk/src/flex-bison/calc/calc.lex 2008-06-03 02:04:08 UTC (rev 850)
@@ -4,8 +4,7 @@
%{
#include "heading.h"
#include "tok.h"
-int yyerror(char *s);
-int yylineno = 1;
+int yyerror(const char *s);
%}
digit [0-9]
@@ -22,3 +21,8 @@
. { std::cerr << "SCANNER "; yyerror(""); exit(1); }
+%%
+
+/*
+vim:noet:sw=8:ts=8
+*/
Modified: sandbox/trunk/src/flex-bison/calc/calc.y
===================================================================
--- sandbox/trunk/src/flex-bison/calc/calc.y 2008-06-03 01:55:57 UTC (rev 849)
+++ sandbox/trunk/src/flex-bison/calc/calc.y 2008-06-03 02:04:08 UTC (rev 850)
@@ -3,7 +3,7 @@
%{
#include "heading.h"
-int yyerror(char *s);
+int yyerror(const char *s);
int yylex(void);
%}
@@ -42,7 +42,7 @@
exit(1);
}
-int yyerror(char *s)
+int yyerror(const char *s)
{
return yyerror(string(s));
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|