Пример #1
0
 void switch_formatSource(caValue* source, Term* term)
 {
     format_name_binding(source, term);
     append_phrase(source, "switch ", term, name_Keyword);
     format_source_for_input(source, term, 0);
     format_branch_source(source, nested_contents(term), term);
 }
Пример #2
0
 void formatSource(StyledSource* source, Term* term)
 {
     format_heading(source, term);
     format_branch_source(source, nested_contents(term), term);
     append_phrase(source, term->stringPropOptional("syntax:whitespaceBeforeEnd", ""),
         term, TK_WHITESPACE);
 }
Пример #3
0
 void format_source(caValue* source, Term* term)
 {
     append_phrase(source, "namespace ", term, name_Keyword);
     append_phrase(source, term->name, term, name_TermName);
     format_branch_source(source, nested_contents(term), term);
     append_phrase(source, term->stringProp("syntax:preEndWs", ""),
             term, tok_Whitespace);
 }
Пример #4
0
void Branch__format_source(caStack* stack)
{
    Branch* branch = as_branch(circa_input(stack, 0));

    caValue* output = circa_output(stack, 0);
    circa_set_list(output, 0);
    format_branch_source((caValue*) output, branch);
}
Пример #5
0
 void case_formatSource(caValue* source, Term* term)
 {
     append_phrase(source, "case ", term, name_Keyword);
     format_source_for_input(source, term, 0);
     format_branch_source(source, nested_contents(term), term);
 }