-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
159 lines (114 loc) · 4.84 KB
/
README
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
RPGLECTAGS(1) General Commands Manual RPGLECTAGS(1)
NAME
rpglectags - Create tags files from ILE RPG source files.
SYNOPSIS
rpglectags [OPTIONS]... FILE...
DESCRIPTION
rpglectags will create a ctags compatible file called tags.
The rpglectags program generate an index (or tag) file for objects
found in ILE RPG file(s). This tag file allows these items to be
quickly and easily located by a text editor or other utility. A tag
signifies a language object for which an index entry is available.
rpglectags will create indices (or tags) for the following:
Procedures
Free format is supported though:
dcl-proc procName;
Fixed format is supported though:
p procName b
Continues procedures are also supported, i.e.
p longProdecureName...
p b
Up to 7 leading spaces will be supported.
Subroutines
Free format is supported though:
begsr subName;
Fixed format is supported though:
c subName begsr
Up to 7 leading spaces will be supported.
Procedure interface
Free format is supported though:
dcl-pi piName;
parm1;
parm2;
end-pi;
Fixed format is supported though:
d piName pi
d parm1
d parm2
Continues procedure interfaces are also supported, i.e.
d veryVeryLongPiName...
p pi
p parm1
p parm2
Up to 7 leading spaces will be supported.
Data structures
Free format is supported though:
dcl-ds dsName;
mbr1;
mbr2;
end-ds;
Fixed format is supported though:
d dsName ds
d mbr1
d mbr2
Continues data structures are also supported, i.e.
d veryVeryLongDsName...
p ds
p mbr1
p mbr2
Up to 7 leading spaces will be supported.
Standalone and constant declaraions
Free format is supported though:
dcl-s varName;
dcl-c constName;
Fixed format is supported though:
d varName s
d constName c
OPTIONS
-f file | -o file
write tags til specified file. Value of - writes tags to std-
out. Default is tags.
-a append the tags to an existing tag file
-h, --help
print a summary of options and exit.
--version
print version information on standard output then exit success-
fully.
EXAMPLES
To create tags from the file test.rpgle, you'd use:
rpglectags test.rpgle
To create tags from all rpgle and sqlrpgle files recursively, you might
say
find . -type f \( -name '*.rpgle' -o -name '*.sqlrpgle' \) \
-exec rpglectags {} +
More examples:
rpglectags -f - test2.rpgle # Print tags to stdout
rpglectags -a test2.rpgle # Append tags to the 'tags'
file
TAG FILE FORMAT
Each entry in the tag file consists of a separate line, each looking
like this in the most general case:
{tagname}<TAB>{tagfile}<TAB>{tagaddress};"<TAB>{tagfields}
The fields and separators of these lines are specified as follows:
1. tag name
2. single tab character
3. name of the file in which the object associated with the tag is
located
4. single tab character
5. tag address. A non magic pattern enclosed in / or ? or a line
number.
6. a constant ;" for backward compatibility with vi(1)
7. extra fields narrowing down the type of tag entry, i.e.
kind:{fvms}, struct:nameOfStruct
EXIT STATUS
The following exit values shall be returned:
0 successful completion.
1 error parsing command-line argument.
SEE ALSO
ctags(1)
AUTHOR
Andreas Louv <andreas@louv.dk>.
LICENSE
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
2017 Oct 9 RPGLECTAGS(1)