summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-02-02 10:44:39 +0100
committerAkim Demaille <akim.demaille@gmail.com>2019-02-02 17:32:04 +0100
commitdc654a925cb44f9c786fb70cace912958214c9c8 (patch)
tree18fce1e15e24ae9b0a420f4844351e4377a9d52b
parent76366e8e5c0cc76a9f828de731f964a219b4ae91 (diff)
downloadbison-dc654a925cb44f9c786fb70cace912958214c9c8.tar.gz
style: comment changes
* src/reader.c, src/scan-code.l: here.
-rw-r--r--src/reader.c2
-rw-r--r--src/scan-code.l4
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)