projects
/
cascardo
/
grammar.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update with lr1 branch
[cascardo/grammar.git]
/
item.c
diff --git
a/item.c
b/item.c
index
eef188d
..
f1f61ce
100644
(file)
--- a/
item.c
+++ b/
item.c
@@
-1,17
+1,10
@@
#include <grammar.h>
#include <first.h>
#include <grammar.h>
#include <first.h>
+#include <item.h>
#ifdef DEBUG
#include <stdio.h>
#endif
#ifdef DEBUG
#include <stdio.h>
#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;
item_t* item_new (symbol_t* left, rule_t* right, symbol_t* lookahead)
{
item_t* item;