Start work on recording parse action conflicts
This commit is contained in:
parent
1da9f1fdfd
commit
3982b73ed6
12 changed files with 278 additions and 26 deletions
|
|
@ -11,9 +11,9 @@
|
|||
namespace tree_sitter {
|
||||
typedef enum {
|
||||
ParseActionTypeError,
|
||||
ParseActionTypeAccept,
|
||||
ParseActionTypeShift,
|
||||
ParseActionTypeReduce,
|
||||
ParseActionTypeAccept,
|
||||
} ParseActionType;
|
||||
|
||||
class ParseAction {
|
||||
|
|
@ -22,6 +22,7 @@ namespace tree_sitter {
|
|||
rules::Symbol symbol,
|
||||
size_t consumed_symbol_count);
|
||||
public:
|
||||
ParseAction();
|
||||
static ParseAction Accept();
|
||||
static ParseAction Error();
|
||||
static ParseAction Shift(size_t state_index);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue