bison-patches
[Top][All Lists]
Advanced

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

[PATCH 2/6] style: comment changes


From: Akim Demaille
Subject: [PATCH 2/6] style: comment changes
Date: Sat, 2 Feb 2019 18:13:03 +0100

* src/reader.c, src/scan-code.l: here.
---
 src/reader.c    | 2 +-
 src/scan-code.l | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/reader.c b/src/reader.c
index 8d373416..3d5d32a3 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -619,7 +619,7 @@ packgram (void)
       /* If the midrule's $$ is set or its $n is used, remove the '$' from the
          symbol name so that it's a user-defined symbol so that the default
          %destructor and %printer apply.  */
-      if (lhs->midrule_parent_rule
+      if (lhs->midrule_parent_rule /* i.e., symbol_is_dummy 
(lhs->content.sym).  */
           && (lhs->action_props.is_value_used
               || (symbol_list_n_get (lhs->midrule_parent_rule,
                                      lhs->midrule_parent_rhs_index)
diff --git a/src/scan-code.l b/src/scan-code.l
index 9141a9a5..2677a79a 100644
--- a/src/scan-code.l
+++ b/src/scan-code.l
@@ -745,8 +745,8 @@ handle_action_at (symbol_list *rule, char *text, location 
at_loc)
 | Initialize the scanner.  |
 `-------------------------*/
 
-/* Translate the dollars and ats in \a self, in the context \a sc_context
-   (SC_RULE_ACTION, SC_SYMBOL_ACTION, INITIAL).  */
+/* Translate the '$...' and '@...' in \a self, in the context \a
+   sc_context (SC_RULE_ACTION, SC_SYMBOL_ACTION, INITIAL).  */
 
 static char const *
 translate_action (code_props *self, int sc_context)
-- 
2.20.1




reply via email to

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