mirror of
https://github.com/ganelson/inform.git
synced 2024-07-08 18:14:21 +03:00
20 lines
781 B
OpenEdge ABL
20 lines
781 B
OpenEdge ABL
[CodeGen::Textual::] Final Textual Inter.
|
|
|
|
To create the range of possible targets into which Inter can be converted.
|
|
|
|
@ This target is very simple: when we get the message to begin generation,
|
|
we simply ask the Inter module to output some text, and return true to
|
|
tell the generator that nothing more need be done.
|
|
|
|
=
|
|
void CodeGen::Textual::create_target(void) {
|
|
code_generation_target *textual_inter_cgt = CodeGen::Targets::new(I"text");
|
|
METHOD_ADD(textual_inter_cgt, BEGIN_GENERATION_MTID, CodeGen::Textual::text);
|
|
}
|
|
|
|
int CodeGen::Textual::text(code_generation_target *cgt, code_generation *gen) {
|
|
if (gen->from_step == NULL) internal_error("temporary generations cannot be output");
|
|
Inter::Textual::write(gen->from_step->text_out_file, gen->from, NULL, 1);
|
|
return TRUE;
|
|
}
|