forked from srcML/srcML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installed.html
52 lines (40 loc) · 1.27 KB
/
installed.html
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<style>
p, li {
font-size : 9pt;
}
body { font-family: Helvetica, Sans-Serif; }
code {
margin-left: 1em;
padding-left: 1em;
padding-bottom : 1em;
margin-bottom : 1em;
}
</style>
</head>
<body>
<p>For details on the srcml command-line program, please refer to the man page (man srcml). Here's some examples of how to use it:</p>
<pre><code class="console">
# Convert from a source file to srcML
srcml main.cpp -o main.cpp.xml
# Convert from srcML back to source code
srcml main.cpp.xml -o main.cpp
# Convert a code fragment to srcML
srcml --text="int a = b;" -l C++ -o fragment.cpp.xml
# Convert entire project to srcML
srcml --verbose project -o project.xml
</code></pre>
<br/>
<p>If you installed the libsrcml development package, you have the ability to write applications that directly use libsrcml. This contains the following:
</p>
<ul>
<li>The include file <code>srcml.h</code></li>
<li>The static library <code>libsrcml.a</code></li>
<li>CMake configuration files</li>
</ul>
<br/>
<p>
In addition, the libsrcml examples are installed in /usr/local/share/srcml</p></body>
</html>