summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-07-05 08:34:39 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-07-05 09:59:45 +0200
commit0820f16ca8a140f2ef8261a9ab42301a7358cec2 (patch)
tree4767b7330eab56c758539bddcfb96de94f4edd16 /src
parent49f1e5f42813f9d8bccedac9e5108b59ae71e8b7 (diff)
downloadbison-0820f16ca8a140f2ef8261a9ab42301a7358cec2.tar.gz
style: update comments
* src/reader.c: action_obstack was removed in 2002... * src/parse-gram.y: Better names. * src/scan-code.h: More comments.
Diffstat (limited to 'src')
-rw-r--r--src/parse-gram.y4
-rw-r--r--src/reader.c10
-rw-r--r--src/scan-code.h1
3 files changed, 7 insertions, 8 deletions
diff --git a/src/parse-gram.y b/src/parse-gram.y
index 4581fc73..fc046f60 100644
--- a/src/parse-gram.y
+++ b/src/parse-gram.y
@@ -695,8 +695,8 @@ rhs:
current_lhs_named_ref); }
| rhs symbol named_ref.opt
{ grammar_current_rule_symbol_append ($2, @2, $3); }
-| rhs tag.opt "{...}"[act] named_ref.opt[name]
- { grammar_current_rule_action_append ($act, @act, $name, $[tag.opt]); }
+| rhs tag.opt "{...}"[action] named_ref.opt[name]
+ { grammar_current_rule_action_append ($action, @action, $name, $[tag.opt]); }
| rhs "%?{...}"
{ grammar_current_rule_predicate_append ($2, @2); }
| rhs "%empty"
diff --git a/src/reader.c b/src/reader.c
index 1ba710c6..2d142331 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -695,12 +695,10 @@ packgram (void)
}
-/*------------------------------------------------------------------.
-| Read in the grammar specification and record it in the format |
-| described in gram.h. All actions are copied into ACTION_OBSTACK, |
-| in each case forming the body of a C function (YYACTION) which |
-| contains a switch statement to decide which action to execute. |
-`------------------------------------------------------------------*/
+/*--------------------------------------------------------------.
+| Read in the grammar specification and record it in the format |
+| described in gram.h. |
+`--------------------------------------------------------------*/
void
reader (const char *gram)
diff --git a/src/scan-code.h b/src/scan-code.h
index 06b6a73a..3859e2b2 100644
--- a/src/scan-code.h
+++ b/src/scan-code.h
@@ -145,6 +145,7 @@ void code_props_symbol_action_init (code_props *self, char const *code,
location code_loc);
/**
+ * \param type type for midrule actions
* \pre
* - <tt>self != NULL</tt>.
* - <tt>code != NULL</tt>.