1 #ifndef _RE2C_CONF_OPT_
2 #define _RE2C_CONF_OPT_
19 OPT1 (opt_t::target_t, target, CODE) \
21 OPT (bool, bNoGenerationDate, false) \
22 OPT (bool, version, true) \
24 OPT (Enc, encoding, Enc ()) \
25 OPT (bool, bCaseInsensitive, false) \
26 OPT (bool, bCaseInverted, false) \
27 OPT (empty_class_policy_t, empty_class_policy, EMPTY_CLASS_MATCH_EMPTY) \
29 OPT (bool, cFlag, false) \
30 OPT (bool, tFlag, false) \
31 OPT (const char *, header_file, NULL) \
32 OPT (std::string, yycondtype, "YYCONDTYPE") \
33 OPT (std::string, cond_get, "YYGETCONDITION") \
34 OPT (bool, cond_get_naked, false) \
35 OPT (std::string, cond_set, "YYSETCONDITION" ) \
36 OPT (std::string, cond_set_arg, "@@" ) \
37 OPT (bool, cond_set_naked, false ) \
38 OPT (std::string, yyctable, "yyctable") \
39 OPT (std::string, condPrefix, "yyc_") \
40 OPT (std::string, condEnumPrefix, "yyc") \
41 OPT (std::string, condDivider, "") \
42 OPT (std::string, condDividerParam, "@@") \
43 OPT (std::string, condGoto, "goto @@;") \
44 OPT (std::string, condGotoParam, "@@") \
46 OPT (bool, fFlag, false) \
47 OPT (std::string, state_get, "YYGETSTATE") \
48 OPT (bool, state_get_naked, false) \
49 OPT (std::string, state_set, "YYSETSTATE") \
50 OPT (std::string, state_set_arg, "@@") \
51 OPT (bool, state_set_naked, false) \
52 OPT (std::string, yyfilllabel, "yyFillLabel") \
53 OPT (std::string, yynext, "yyNext") \
54 OPT (std::string, yyaccept, "yyaccept") \
55 OPT (bool, bUseStateAbort, false) \
56 OPT (bool, bUseStateNext, false) \
58 OPT (bool, rFlag, false) \
60 OPT (bool, FFlag, false) \
62 OPT (bool, sFlag, false) \
63 OPT (bool, bFlag, false) \
64 OPT (std::string, yybm, "yybm") \
65 OPT (bool, yybmHexTable, false) \
66 OPT (bool, gFlag, false) \
67 OPT (std::string, yytarget, "yytarget") \
68 OPT (uint32_t, cGotoThreshold, 9) \
70 OPT (uint32_t, topIndent, 0) \
71 OPT (std::string, indString, "\t") \
73 OPT (InputAPI, input_api, InputAPI ()) \
74 OPT (std::string, yycursor, "YYCURSOR") \
75 OPT (std::string, yymarker, "YYMARKER") \
76 OPT (std::string, yyctxmarker, "YYCTXMARKER") \
77 OPT (std::string, yylimit, "YYLIMIT") \
78 OPT (std::string, yypeek, "YYPEEK") \
79 OPT (std::string, yyskip, "YYSKIP") \
80 OPT (std::string, yybackup, "YYBACKUP") \
81 OPT (std::string, yybackupctx, "YYBACKUPCTX") \
82 OPT (std::string, yyrestore, "YYRESTORE") \
83 OPT (std::string, yyrestorectx, "YYRESTORECTX") \
84 OPT (std::string, yylessthan, "YYLESSTHAN") \
86 OPT (bool, iFlag, false) \
88 OPT (bool, dFlag, false) \
89 OPT (std::string, yydebug, "YYDEBUG") \
91 OPT (std::string, yyctype, "YYCTYPE") \
92 OPT (std::string, yych, "yych") \
93 OPT (bool, bEmitYYCh, true) \
94 OPT (bool, yychConversion, false) \
96 OPT (std::string, fill, "YYFILL") \
97 OPT (bool, fill_use, true) \
98 OPT (bool, fill_check, true) \
99 OPT (std::string, fill_arg, "@@") \
100 OPT (bool, fill_arg_use, true) \
101 OPT (bool, fill_naked, false) \
103 OPT (std::string, labelPrefix, "yy") \
105 OPT (dfa_minimization_t, dfa_minimization, DFA_MINIMIZATION_MOORE)
117 #define OPT(type, name, value) type name;
171 return realopt.operator -> ();
174 bool source (
const char * s);
175 bool output (
const char * s);
187 #define OPT(type, name, value) void set_##name (type arg) { useropt->name = arg; }
218 #endif // _RE2C_CONF_OPT_
void unset_encoding(Enc::type_t t)
bool source(const char *s)
static const opt_t baseopt
std::string yychConversion()
void reset_encoding(const Enc &enc)
bool set_encoding(Enc::type_t t)
void set_encoding_policy(Enc::policy_t p)
void set_input_api(InputAPI::type_t t)
const opt_t * operator->()
bool output(const char *s)
realopt_t(useropt_t &opt)
const opt_t * operator->()
opt_t & operator=(const opt_t &opt)
void setPolicy(policy_t t)
parse_opts_t parse_opts(char **argv, Opt &opts)