bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 08/10] java: fix names


From: Akim Demaille
Subject: [PATCH 08/10] java: fix names
Date: Mon, 13 Apr 2020 17:43:39 +0200

* data/skeletons/lalr1.java (yySymbolPrint): There are no pointers
here, remove the `p` suffix.
Use the appropriate type for locations.
---
 data/skeletons/lalr1.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/data/skeletons/lalr1.java b/data/skeletons/lalr1.java
index 813c7757..57a175c3 100644
--- a/data/skeletons/lalr1.java
+++ b/data/skeletons/lalr1.java
@@ -502,14 +502,14 @@ import java.text.MessageFormat;
   | Print this symbol on YYOUTPUT.  |
   `--------------------------------*/
 
-  private void yySymbolPrint (String s, SymbolKind yykind,
-                             ]b4_yystype[ yyvaluep]dnl
-                              b4_locations_if([, Object yylocationp])[)
+  private void yySymbolPrint(String s, SymbolKind yykind,
+                             ]b4_yystype[ yyvalue]b4_locations_if([, 
]b4_location_type[ yylocation])[)
   {
-    yycdebug (s + (yykind.getCode () < YYNTOKENS_ ? " token " : " nterm ")
+    yycdebug (s
+              + (yykind.getCode() < YYNTOKENS_ ? " token " : " nterm ")
               + yykind.getName() + " ("]b4_locations_if([
-              + yylocationp + ": "])[
-              + (yyvaluep == null ? "(null)" : yyvaluep.toString ()) + ")");
+              + yylocation + ": "])[
+              + (yyvalue == null ? "(null)" : yyvalue.toString()) + ")");
   }]])[
 
 ]b4_push_if([],[[
-- 
2.26.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]