1 |
/* Compute look-ahead criteria for bison, |
/* Compute look-ahead criteria for bison, |
2 |
Copyright 1984, 1986, 1989, 2000 Free Software Foundation, Inc. |
Copyright 1984, 1986, 1989, 2000, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of Bison, the GNU Compiler Compiler. |
This file is part of Bison, the GNU Compiler Compiler. |
5 |
|
|
21 |
#ifndef LALR_H_ |
#ifndef LALR_H_ |
22 |
# define LALR_H_ |
# define LALR_H_ |
23 |
|
|
24 |
|
#include "bitset.h" |
25 |
|
|
26 |
/* Import the definition of CORE, SHIFTS and REDUCTIONS. */ |
/* Import the definition of CORE, SHIFTS and REDUCTIONS. */ |
27 |
# include "state.h" |
# include "state.h" |
66 |
token is symbol i. If LA[l, i] and LA[l, j] are both 1 for i != j, |
token is symbol i. If LA[l, i] and LA[l, j] are both 1 for i != j, |
67 |
it is a conflict. */ |
it is a conflict. */ |
68 |
|
|
69 |
extern unsigned *LA; |
extern bitset *LA; |
|
#define LA(Rule) (LA + (Rule) * tokensetsize) |
|
70 |
|
|
71 |
|
|
72 |
/* All the states, indexed by the state number. */ |
/* All the states, indexed by the state number. */ |