From 3d032cf3e894fbfea00a81acf1fd90a29de9bb63 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 2 Aug 2023 09:49:26 -0400 Subject: [ruby/yarp] Simplify creation of numerics https://github.com/ruby/yarp/commit/e5f6ffa23a --- yarp/parser.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'yarp/parser.h') diff --git a/yarp/parser.h b/yarp/parser.h index a23f886084..2091be7fd9 100644 --- a/yarp/parser.h +++ b/yarp/parser.h @@ -96,10 +96,7 @@ typedef struct yp_lex_mode { // This state is used when we are lexing a string or a string-like // token, as in string content with either quote or an xstring. - YP_LEX_STRING, - - // you lexed a number with extra information attached - YP_LEX_NUMERIC, + YP_LEX_STRING } mode; union { @@ -163,12 +160,6 @@ typedef struct yp_lex_mode { char breakpoints[6]; } string; - struct { - yp_token_type_t type; - const char *start; - const char *end; - } numeric; - struct { // These pointers point to the beginning and end of the heredoc // identifier. -- cgit v1.2.3