From: Thadeu Lima de Souza Cascardo Date: Sun, 23 Oct 2005 23:40:44 +0000 (+0000) Subject: Update with lr1 branch X-Git-Tag: cascardo@tlscascardo--private,libgrammatic--regular--0.1--base-0~8 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fgrammar.git;a=commitdiff_plain;h=3e5e98ceab44fdf624ed07653bc46216d0921ee5;hp=cdbf495ba8308a218b8e2ee3ea8b6b9559471b2d Update with lr1 branch Patches applied: * cascardo@tlscascardo--private/libgrammatic--lr1--0.1--patch-5 Added header to item collection building git-archimport-id: cascardo@tlscascardo--private/libgrammatic--nogobject-lr1--0.1--patch-4 --- diff --git a/item.c b/item.c index eef188d..f1f61ce 100644 --- a/item.c +++ b/item.c @@ -1,17 +1,10 @@ #include #include +#include #ifdef DEBUG #include #endif -typedef struct -{ - symbol_t* left; - rule_t* right; - GList* dot; - symbol_t* lookahead; -} item_t; - item_t* item_new (symbol_t* left, rule_t* right, symbol_t* lookahead) { item_t* item; diff --git a/item.h b/item.h new file mode 100644 index 0000000..4924562 --- /dev/null +++ b/item.h @@ -0,0 +1,14 @@ +#ifndef ITEM_H +#define ITEM_H + +typedef struct +{ + symbol_t* left; + rule_t* right; + GList* dot; + symbol_t* lookahead; +} item_t; + +GHashTable* item_set_collection (Grammar*, GHashTable*, symbol_t*); + +#endif