blob: ce0c5eb103ca681b1ff9a305c420590e844392ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// file : CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp
// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id : $Id$
#include "CCF/CodeGenerationKit/IndentationIDL.hpp"
#include "CCF/CodeGenerationKit/IndentationImplanter.hpp"
#include <iostream>
using std::cout;
using std::endl;
int
main ()
{
Indentation::Implanter<Indentation::IDL> guard (cout);
cout << "const string s = \"Hello \\\"world;\";";
cout << "const char c1 = \'\\\'\';";
cout << "const char c2 = \';\';";
cout << "interface I {"
<< "void foo ();"
<< "};";
}
|