@@ -28,15 +28,15 @@ namespace meevax
28
28
{
29
29
inline namespace kernel
30
30
{
31
- template <typename EnvironmentSpecifier >
31
+ template <typename Environment >
32
32
class configurator
33
33
{
34
- friend EnvironmentSpecifier ;
34
+ friend Environment ;
35
35
36
- IMPORT (EnvironmentSpecifier , evaluate, NIL);
37
- IMPORT (EnvironmentSpecifier , load, NIL);
38
- IMPORT (EnvironmentSpecifier , print, const );
39
- IMPORT (EnvironmentSpecifier , read, NIL);
36
+ IMPORT (Environment , evaluate, NIL);
37
+ IMPORT (Environment , load, NIL);
38
+ IMPORT (Environment , print, const );
39
+ IMPORT (Environment , read, NIL);
40
40
41
41
template <typename Key>
42
42
using dispatcher = std::unordered_map<Key, procedure::applicable>;
@@ -90,17 +90,17 @@ inline namespace kernel
90
90
91
91
, short_options_with_arguments
92
92
{
93
- std::make_pair (' e' , [this ](pair:: const_reference x)
93
+ std::make_pair (' e' , [this ](const_reference x)
94
94
{
95
95
return print (evaluate (x)), unspecified;
96
96
}),
97
97
98
- std::make_pair (' l' , [this ](pair:: const_reference x)
98
+ std::make_pair (' l' , [this ](const_reference x)
99
99
{
100
100
return load (x);
101
101
}),
102
102
103
- std::make_pair (' w' , [this ](pair:: const_reference x)
103
+ std::make_pair (' w' , [this ](const_reference x)
104
104
{
105
105
return print (x), unspecified;
106
106
}),
@@ -152,22 +152,22 @@ inline namespace kernel
152
152
153
153
, long_options_with_arguments
154
154
{
155
- std::make_pair (" evaluate" , [this ](pair:: const_reference x)
155
+ std::make_pair (" evaluate" , [this ](const_reference x)
156
156
{
157
157
return print (evaluate (x)), unspecified;
158
158
}),
159
159
160
- std::make_pair (" load" , [this ](pair:: const_reference x)
160
+ std::make_pair (" load" , [this ](const_reference x)
161
161
{
162
162
return load (x);
163
163
}),
164
164
165
- std::make_pair (" prompt" , [this ](pair:: const_reference x)
165
+ std::make_pair (" prompt" , [this ](const_reference x)
166
166
{
167
167
return prompt = x;
168
168
}),
169
169
170
- std::make_pair (" write" , [this ](pair:: const_reference x)
170
+ std::make_pair (" write" , [this ](const_reference x)
171
171
{
172
172
return print (x), unspecified;
173
173
}),
@@ -223,7 +223,7 @@ inline namespace kernel
223
223
}
224
224
else if (auto iter = short_options.find (*current_short_option); iter != std::end (short_options))
225
225
{
226
- std::get< 1 > (*iter)(unit);
226
+ cdr (*iter)(unit);
227
227
}
228
228
else
229
229
{
@@ -237,11 +237,11 @@ inline namespace kernel
237
237
{
238
238
if (analysis.length (2 )) // argument part
239
239
{
240
- return std::get< 1 > (*iter)(read (analysis.str (3 )));
240
+ return cdr (*iter)(read (analysis.str (3 )));
241
241
}
242
242
else if (++current_option != std::end (args) and not std::regex_match (*current_option, analysis, pattern))
243
243
{
244
- return std::get< 1 > (*iter)(read (*current_option));
244
+ return cdr (*iter)(read (*current_option));
245
245
}
246
246
else
247
247
{
@@ -250,7 +250,7 @@ inline namespace kernel
250
250
}
251
251
else if (auto iter = long_options.find (current_long_option); iter != std::end (long_options))
252
252
{
253
- return std::get< 1 > (*iter)(unit);
253
+ return cdr (*iter)(unit);
254
254
}
255
255
else
256
256
{
@@ -304,7 +304,7 @@ inline namespace kernel
304
304
print (" -d, --debug Display detailed informations for developers." );
305
305
print (" -e, --evaluate=STRING Read and evaluate given STRING at configuration step." );
306
306
print (" -h, --help Display this help text and exit." );
307
- print (" -i, --interactive Take over control of root syntactic-continuation ." );
307
+ print (" -i, --interactive Take over control of root environment ." );
308
308
print (" -l, --load=FILENAME Same as -e '(load FILENAME)'" );
309
309
print (" --prompt=STRING Same as -e '(set-prompt! STRING)'" );
310
310
print (" -t, --trace Display stacks of virtual machine for each steps." );
0 commit comments