From 01d834c833686cd36a275d510e1797dda0650859 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 29 May 2002 05:20:39 +0000 Subject: * parse.y: yyparse #defines moved from intern.h * ruby.c (proc_options): access prefixed "ruby_yydebug". * applied modifies to pacify some of gcc -Wall warnings. * parse.y (arg): no more ugly hack for "**", so that "-2**2" to be parsed as "(-2)**2", whereas "- 2**2" or "-(2)**2" to be parsed as "-(2**2)". * parse.y (yylex): '-2' to be literal fixnum. [new] * time.c (time_succ): new method for Range support. * time.c (time_arg): nil test against v[6] (usec). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 52d0f2a13..935f678ef 100644 --- a/parse.y +++ b/parse.y @@ -13,14 +13,23 @@ %{ #define YYDEBUG 1 + #include "ruby.h" #include "env.h" +#include "intern.h" #include "node.h" #include "st.h" #include #include #include +#define yyparse ruby_yyparse +#define yylex ruby_yylex +#define yyerror ruby_yyerror +#define yylval ruby_yylval +#define yychar ruby_yychar +#define yydebug ruby_yydebug + #define ID_SCOPE_SHIFT 3 #define ID_SCOPE_MASK 0x07 #define ID_LOCAL 0x01 -- cgit