1 |
/* Subroutines for bison |
/* Subroutines for bison |
2 |
Copyright (C) 1984, 1989, 2000, 2001, 2002 Free Software Foundation, Inc. |
|
3 |
|
Copyright (C) 1984, 1989, 2000, 2001, 2002 Free Software |
4 |
|
Foundation, Inc. |
5 |
|
|
6 |
This file is part of Bison, the GNU Compiler Compiler. |
This file is part of Bison, the GNU Compiler Compiler. |
7 |
|
|
23 |
#ifndef CLOSURE_H_ |
#ifndef CLOSURE_H_ |
24 |
# define CLOSURE_H_ |
# define CLOSURE_H_ |
25 |
|
|
26 |
|
# include "gram.h" |
27 |
|
|
28 |
/* Allocates the itemset and ruleset vectors, and precomputes useful |
/* Allocates the itemset and ruleset vectors, and precomputes useful |
29 |
data so that closure can be called. n is the number of elements to |
data so that closure can be called. n is the number of elements to |
30 |
allocate for itemset. */ |
allocate for itemset. */ |
46 |
significant). CLOSURE places there the indices of all items which |
significant). CLOSURE places there the indices of all items which |
47 |
represent units of input that could arrive next. */ |
represent units of input that could arrive next. */ |
48 |
|
|
49 |
void closure (item_number_t *items, int n); |
void closure (item_number *items, int n); |
50 |
|
|
51 |
|
|
52 |
/* Frees ITEMSET, RULESET and internal data. */ |
/* Frees ITEMSET, RULESET and internal data. */ |
53 |
|
|
54 |
void free_closure (void); |
void free_closure (void); |
55 |
|
|
56 |
extern item_number_t *itemset; |
extern item_number *itemset; |
57 |
extern int nritemset; |
extern int nritemset; |
58 |
|
|
59 |
#endif /* !CLOSURE_H_ */ |
#endif /* !CLOSURE_H_ */ |