aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/bison/src/scan-code.h
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2024-07-08 15:54:05 +0000
committerAlexander Smirnov <alex@ydb.tech>2024-07-08 15:54:05 +0000
commitfc7be18c76af2e700641f3598c4856baeef1428e (patch)
tree11dbca45eb321c3a4dd08b12152acc6ef5dd3fa9 /contrib/tools/bison/src/scan-code.h
parentec0e7ed6da6fb317741fd8468602949a1362eca5 (diff)
parentc92cb9d3a19331916f0c274d80e67f02a62caa9b (diff)
downloadydb-fc7be18c76af2e700641f3598c4856baeef1428e.tar.gz
Merge branch 'rightlib' into mergelibs-240708-1553
Diffstat (limited to 'contrib/tools/bison/src/scan-code.h')
-rw-r--r--contrib/tools/bison/src/scan-code.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/contrib/tools/bison/src/scan-code.h b/contrib/tools/bison/src/scan-code.h
index d5a15c1a1c..483fe9ba56 100644
--- a/contrib/tools/bison/src/scan-code.h
+++ b/contrib/tools/bison/src/scan-code.h
@@ -1,6 +1,7 @@
/* Bison code properties structure and scanner.
- Copyright (C) 2006-2007, 2009-2013 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007, 2009-2015, 2018-2019 Free Software
+ Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
@@ -22,6 +23,7 @@
# include "location.h"
# include "named-ref.h"
+# include "uniqstr.h"
struct symbol_list;
@@ -80,8 +82,11 @@ typedef struct code_props {
/** \c NULL iff \c code_props::kind is not \c CODE_PROPS_RULE_ACTION. */
struct symbol_list *rule;
- /* Named reference. */
+ /** Named reference. */
named_ref *named_ref;
+
+ /** Type, for midrule actions. */
+ uniqstr type;
} code_props;
/**
@@ -102,7 +107,8 @@ void code_props_none_init (code_props *self);
/* .is_predicate = */ false, \
/* .is_used = */ false, \
/* .rule = */ NULL, \
- /* .named_ref = */ NULL \
+ /* .named_ref = */ NULL, \
+ /* .type = */ NULL, \
}
/** Initialized by \c CODE_PROPS_NONE_INIT with no further modification. */
@@ -157,7 +163,8 @@ void code_props_symbol_action_init (code_props *self, char const *code,
*/
void code_props_rule_action_init (code_props *self, char const *code,
location code_loc, struct symbol_list *rule,
- named_ref *name, bool is_predicate);
+ named_ref *name, uniqstr type,
+ bool is_predicate);
/**
* \pre