Distinguish separators from main tokens via a property on transitions

It was incorrect to store it as a property on the lexical states themselves
This commit is contained in:
Max Brunsfeld 2016-05-19 16:25:44 -07:00
parent 59712ec492
commit a3679fbb1f
13 changed files with 157 additions and 153 deletions

View file

@ -20,12 +20,13 @@ typedef enum {
struct AdvanceAction {
AdvanceAction();
AdvanceAction(size_t, PrecedenceRange);
AdvanceAction(size_t, PrecedenceRange, bool);
bool operator==(const AdvanceAction &action) const;
size_t state_index;
PrecedenceRange precedence_range;
bool in_main_token;
};
struct AcceptTokenAction {