summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/eval.c2
-rw-r--r--src/eval.h2
-rw-r--r--src/parse.c12
3 files changed, 8 insertions, 8 deletions
diff --git a/src/eval.c b/src/eval.c
index 1d0a6f2..d685ab0 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -15,7 +15,7 @@
****************************************************************************/
/**
- * Implementation of all the literal expressions.
+ * Implementation of all the primary expressions.
*/
#include "eval.h"
diff --git a/src/eval.h b/src/eval.h
index a1bbd2f..a50dc4e 100644
--- a/src/eval.h
+++ b/src/eval.h
@@ -15,7 +15,7 @@
****************************************************************************/
/**
- * The evaluation functions that implement literal expressions like -name,
+ * The evaluation functions that implement primary expressions like -name,
* -print, etc.
*/
diff --git a/src/parse.c b/src/parse.c
index 96f03dd..fbb095d 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -3189,7 +3189,7 @@ static struct bfs_expr *parse_version(struct parser_state *state, int arg1, int
typedef struct bfs_expr *parse_fn(struct parser_state *state, int arg1, int arg2);
/**
- * An entry in the parse table for literals.
+ * An entry in the parse table for primary expressions.
*/
struct table_entry {
char *arg;
@@ -3201,7 +3201,7 @@ struct table_entry {
};
/**
- * The parse table for literals.
+ * The parse table for primary expressions.
*/
static const struct table_entry parse_table[] = {
{"--", T_FLAG},
@@ -3358,11 +3358,11 @@ static const struct table_entry *table_lookup_fuzzy(const char *arg) {
}
/**
- * LITERAL : OPTION
+ * PRIMARY : OPTION
* | TEST
* | ACTION
*/
-static struct bfs_expr *parse_literal(struct parser_state *state) {
+static struct bfs_expr *parse_primary(struct parser_state *state) {
// Paths are already skipped at this point
const char *arg = state->argv[0];
@@ -3423,7 +3423,7 @@ unexpected:
* FACTOR : "(" EXPR ")"
* | "!" FACTOR | "-not" FACTOR
* | "-exclude" FACTOR
- * | LITERAL
+ * | PRIMARY
*/
static struct bfs_expr *parse_factor(struct parser_state *state) {
if (skip_paths(state) != 0) {
@@ -3489,7 +3489,7 @@ static struct bfs_expr *parse_factor(struct parser_state *state) {
return new_unary_expr(eval_not, factor, argv);
} else {
- return parse_literal(state);
+ return parse_primary(state);
}
}