Boston, MA 02111-1307, USA. */
#include "system.h"
+#include "complain.h"
#include "symlist.h"
res->location = location;
res->action = NULL;
res->ruleprec = NULL;
+ res->dprec = 0;
+ res->merger = 0;
return res;
}
}
+/*--------------------.
+| Return its length. |
+`--------------------*/
+
+unsigned int
+symbol_list_length (symbol_list_t *list)
+{
+ int res = 0;
+ for (/* Nothing. */; list; list = list->next)
+ ++res;
+ return res;
+}
+
+
/*--------------------------------------------------------------.
| Get the data type (alternative in the union) of the value for |
| symbol N in rule RULE. |