~ubuntu-branches/ubuntu/jaunty/adacontrol/jaunty

« back to all changes in this revision

Viewing changes to src/adactl.xml

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Brenta
  • Date: 2006-08-24 08:44:11 UTC
  • Revision ID: james.westby@ubuntu.com-20060824084411-1r15uio1h75lqgpx
Tags: upstream-1.4r20
ImportĀ upstreamĀ versionĀ 1.4r20

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" ?>
 
2
 
 
3
<!--  This file adds support for AdaControl -->
 
4
 
 
5
<AdaControl>
 
6
 
 
7
 <!--  Rules syntax -->
 
8
 
 
9
 <Language>
 
10
  <Name>AdaControl Rules File</Name>
 
11
  <Extension>.aru</Extension>
 
12
  <Keywords>^(check|search)\b</Keywords>
 
13
 
 
14
  <Context>
 
15
   <New_Line_Comment_Start>--</New_Line_Comment_Start>
 
16
   <String_Delimiter>&quot;</String_Delimiter>
 
17
   <Constant_Character>&apos;</Constant_Character>
 
18
   <Can_Indent>False</Can_Indent>
 
19
   <Syntax_Highlighting>True</Syntax_Highlighting>
 
20
   <Case_Sensitive>False</Case_Sensitive>
 
21
  </Context>
 
22
 
 
23
  <Categories>
 
24
   <Category>
 
25
    <Name>entry</Name>
 
26
    <Pattern>^[ \t]*(\w+)[ \t]*:</Pattern>
 
27
    <Index>1</Index>
 
28
   </Category>
 
29
   <Category>
 
30
    <Name>namespace</Name>
 
31
    <Pattern>(check|search)[ \t]+(\w+)</Pattern>
 
32
    <Index>2</Index>
 
33
   </Category>
 
34
   <Category>
 
35
    <Name>type</Name>
 
36
    <Pattern>(check|search)</Pattern>
 
37
    <Index>1</Index>
 
38
   </Category>
 
39
  </Categories>
 
40
 </Language>
 
41
 
 
42
 <!--  Tools  -->
 
43
 
 
44
 <tool name="AdaControl">
 
45
  <language>Ada</language>
 
46
  <initial-cmd-line>-v</initial-cmd-line>
 
47
  <switches lines="3" columns="1">
 
48
   <title line="1" column="1">
 
49
    Rules
 
50
   </title>
 
51
   <field label="Rules list" switch="-l" separator="&#32;"/>
 
52
   <field label="Rules file" switch="-f" separator="&#32;" as-file="true"/>
 
53
 
 
54
   <title line="2" column="1">
 
55
      Processing
 
56
   </title>
 
57
   <field label="Project file" switch="-p" separator="&#32;" line="2" column="1" as-file="true"
 
58
    tip="Emacs style project file (.adp)"/>
 
59
   <check label="Recursive mode" switch="-r" line="2" column="1"
 
60
    tip="Process recursively all units the given units depend on"/>
 
61
   <check label="Ignore local deactivation" switch="-i" line="2" column="1"
 
62
    tip="Ignore local deactivation tags in source file"/>
 
63
   <check label="Process spec only" switch="-s" line="2" column="2"/>
 
64
   <check label="Compilation unit mode" switch="-u" line="2" column="2"
 
65
    tip="Treat all source names as compilation units even if they look like file names"/>
 
66
 
 
67
   <title line="3" column="1">
 
68
    Output
 
69
   </title>
 
70
   <check label="Verbose mode" switch="-v" line="3" column="1"
 
71
    tip="Displays more information, such as unit name, nil units, ..."/>
 
72
   <check label="Debug mode" switch="-d" line="3" column="1"
 
73
    tip="Displays debug information, such as output file name, ..."/>
 
74
   <field label="Output file" switch="-o" line="3" column="1" separator="&#32;" 
 
75
    as-file="true" tip="Output file name"/>
 
76
   <check label="Overwrite mode" switch="-w" line="3" column="1"
 
77
    tip="Overwrite output file if it exists"/>  
 
78
 
 
79
  </switches> 
 
80
 </tool>
 
81
 
 
82
 <!--  Actions  -->
 
83
 
 
84
 <action name="Check_Rules" show-command="false" output="none">
 
85
  <shell>Project %P</shell>
 
86
  <shell>Project.get_tool_switches_as_string %1 AdaControl</shell>
 
87
  <external show-command="true" output="">adactl %1 %Ps</external>
 
88
  <shell>Locations.parse """%1 """ run</shell>
 
89
 </action>
 
90
 
 
91
 <!--  Submenus  -->
 
92
 
 
93
<menu action="Check_Rules">
 
94
   <title>Tools/AdaControl</title>
 
95
</menu>
 
96
 
 
97
</AdaControl>
 
98