14 lines
429 B
C++
14 lines
429 B
C++
#include "{{name}}.h"
|
|
|
|
#define TABLE {{name}}___Table___{{name}}
|
|
#define REDUCE_COUNT {{name}}___Num_Reduces___{{name}}
|
|
|
|
const std::uint64_t TABLE[{{num_states}}][{{num_symbols}}] = {
|
|
{{#states}}
|
|
{ {{#actions}}({{name}}::{{action}} | {{data}} << 2),{{/actions}}
|
|
{{#gotos}}({{data}} << 2),{{/gotos}} },
|
|
{{/states}}
|
|
};
|
|
|
|
const unsigned char REDUCE_COUNT[{{num_rules}}] = { {{#rules}}{{rhs_length}}{{/rules}} };
|