Handle ambiguities between extra and non-extra tokens using normal GLR splitting
This commit is contained in:
parent
d31934ac77
commit
b76574e01c
8 changed files with 63 additions and 100 deletions
|
|
@ -136,14 +136,6 @@ struct TSLanguage {
|
|||
{ .type = TSParseActionTypeShift, .extra = true } \
|
||||
}
|
||||
|
||||
#define REDUCE_EXTRA(symbol_val) \
|
||||
{ \
|
||||
{ \
|
||||
.type = TSParseActionTypeReduce, .symbol = symbol_val, .child_count = 1, \
|
||||
.extra = true, \
|
||||
} \
|
||||
}
|
||||
|
||||
#define REDUCE(symbol_val, child_count_val) \
|
||||
{ \
|
||||
{ \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue