-/* Generated by re2c 0.16 on Sat Dec 24 10:36:44 2016 */
+/* Generated by re2c 0.16 on Sat Dec 24 11:18:49 2016 */
#line 1 "../src/parse/lex.re"
#include "src/util/c99_stdint.h"
#include <stddef.h>
for (SpecMap::iterator it = context.specMap.begin(); it != context.specMap.end(); ++it) {
delay_default(it->second);
const std::string &setup = find_setup_rule(context.ruleSetupMap, it->first);
- dfa_map[it->first] = compile(it->second, o, it->first, opts->encoding.nCodeUnits (), setup);
+ dfa_map[it->first] = compile(it->second, o, it->first, setup);
}
}
}
smart_ptr<DFA> compile(const Spec &rules, Output &output,
- const std::string &cond, uint32_t cunits, const std::string &setup)
+ const std::string &cond, const std::string &setup)
{
const size_t defrule = !rules.empty() && RegExpRule::is_def(*rules.rbegin())
? rules.size() - 1 : Rule::NONE;
const std::string name = make_name(cond, line);
Opt &opts = output.source.opts;
Warn &warn = output.source.warn;
+ const uint32_t cunits = opts->encoding.nCodeUnits();
warn_nullable(rules, cond, warn);
struct Output;
smart_ptr<DFA> compile(const Spec &spec, Output &output,
- const std::string &cond, uint32_t cunits, const std::string &setup);
+ const std::string &cond, const std::string &setup);
} // namespace re2c
for (SpecMap::iterator it = context.specMap.begin(); it != context.specMap.end(); ++it) {
delay_default(it->second);
const std::string &setup = find_setup_rule(context.ruleSetupMap, it->first);
- dfa_map[it->first] = compile(it->second, o, it->first, opts->encoding.nCodeUnits (), setup);
+ dfa_map[it->first] = compile(it->second, o, it->first, setup);
}
}