Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 87f9c7ed650be6b9d55452e5399328adc1d9acc3 (plain) (blame)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>CDT Language</title>
<style type="text/css">@import url("../../book.css");</style>
<style type="text/css">@import url("../../schema.css");</style>
</HEAD>
<BODY>
<H1 style="text-align:center">CDT Language</H1>
<p></p>
<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.cdt.core.language<p></p>
<h6 class="CaptionFigColumn SchemaHeader">Since: </h6>CDT 3.1
<p></p>

<h6 class="CaptionFigColumn SchemaHeader">Description: </h6>This extension point is used to declare a language or language variant. Languages define how the C model of a file is created (e.g. to populate the outline view). It also provides hooks to override the low level parsing of translation units into an abstract syntax tree. Practically this is limited to C/C++ language variants only. Completely different languages cannot be modelled reasonably using this extension point.<p></p>
<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6>
<p></p>
<p class="code SchemaDtd">&lt;!ELEMENT <a name="e.extension">extension</a> ((<a href="#e.language">language</a> | <a href="#e.pdomLinkageFactory">pdomLinkageFactory</a>))+&gt;</p>
<p class="code SchemaDtd">&lt;!ATTLIST extension</p>
<p class="code SchemaDtdAttlist">point&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #IMPLIED&gt;</p>
<p></p>
<ul class="ConfigMarkupAttlistDesc">
</ul>
<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.language">language</a> (<a href="#e.contentType">contentType</a>)*&gt;</p>
<p class="code SchemaDtd">&lt;!ATTLIST language</p>
<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">class&nbsp;CDATA #REQUIRED&gt;</p>
<p></p>
<ul class="ConfigMarkupAttlistDesc">
<li><b>id</b> - A unique identifier of the language. Note that the identifier is prefixed with the ID of the contributing plug-in.</li>
<li><b>name</b> - A human readable and translatable name of the language.</li>
<li><b>class</b> - A class extending <code>org.eclipse.core.model.AbstractLanguage</code>.</li>
</ul>
<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.contentType">contentType</a> EMPTY&gt;</p>
<p class="code SchemaDtd">&lt;!ATTLIST contentType</p>
<p class="code SchemaDtdAttlist">id&nbsp;CDATA #IMPLIED&gt;</p>
<p></p>
<ul class="ConfigMarkupAttlistDesc">
<li><b>id</b> - </li>
</ul>
<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.pdomLinkageFactory">pdomLinkageFactory</a> EMPTY&gt;</p>
<p class="code SchemaDtd">&lt;!ATTLIST pdomLinkageFactory</p>
<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">class&nbsp;CDATA #REQUIRED&gt;</p>
<p></p>
<ul class="ConfigMarkupAttlistDesc">
<li><b>id</b> - </li>
<li><b>class</b> - The factory that creates linkage objects.</li>
</ul>
<br><h6 class="CaptionFigColumn SchemaHeader">Examples: </h6><pre class="Example"><span class="code SchemaTag">
&lt;language
      class=</span><span class="code SchemaCstring">&quot;org.eclipse.cdt.core.dom.ast.gnu.c.GCCLanguage&quot;</span><span class="code SchemaTag">
      id=</span><span class="code SchemaCstring">&quot;gcc&quot;</span><span class="code SchemaTag">
      name=</span><span class="code SchemaCstring">&quot;GNU C&quot;</span><span class="code SchemaTag">&gt;
   &lt;contentType id=</span><span class="code SchemaCstring">&quot;org.eclipse.cdt.core.cSource&quot;</span><span class="code SchemaTag">/&gt;
   &lt;contentType id=</span><span class="code SchemaCstring">&quot;org.eclipse.cdt.core.cHeader&quot;</span><span class="code SchemaTag">/&gt;
&lt;/language&gt;
</span></pre>
<p></p>

<h6 class="CaptionFigColumn SchemaHeader">Supplied Implementation: </h6>CDT comes with following built-in languages:
<code>org.eclipse.cdt.core.language.gcc</code> (GNU C) and 
<code>org.eclipse.cdt.core.language.g++</code> (GNU C++).
<p>The respective language implementations are
<code>org.eclipse.cdt.core.dom.ast.gnu.c.GCCLanguage</code> and
<code>org.eclipse.cdt.core.dom.ast.gnu.cpp.GPPLanguage</code>
</p>
<p></p>

<br>
<p class="note SchemaCopyright">
Copyright (c) 2005, 2007 QNX Software Systems and others. 
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which
accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html

</p>
</BODY>
</HTML>

Back to the top