regex_compile should return -1 if not a regular grammar; give backends names

This commit is contained in:
Meredith L. Patterson 2014-04-20 17:23:25 +02:00
parent c9419f4c34
commit 1d12f9ffac
4 changed files with 17 additions and 6 deletions

View file

@ -46,6 +46,14 @@ typedef enum HParserBackend_ {
PB_MAX = PB_GLR
} HParserBackend;
static const char* HParserBackendNames[] = {
"Packrat",
"Regular",
"LL(k)",
"LALR",
"GLR"
};
typedef enum HTokenType_ {
// Before you change the explicit values of these, think of the poor bindings ;_;
TT_NONE = 1,
@ -178,6 +186,7 @@ typedef struct HCaseResult_ {
#else
HResultTiming timestamp;
#endif
size_t length;
} HCaseResult;
typedef struct HBackendResults_ {