#include <grammar.h>
#include <stdlib.h>
+#include <lr1.h>
enum { PARSER_SHIFT, PARSER_REDUCE, PARSER_ACCEPT };
for (l = grammar_get_rule (transition->right);
l != NULL;
- l = g_list_previous (l))
+ l = g_list_next (l))
{
gpointer attr;
if (!lr1_pop (parser, &attr))