-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
59 lines (55 loc) · 1.77 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
RPGLEDOC
Create documentation from JavaDoc compatible comments in ILE RPG programs.
A comment consist of:
COMMENT [DCL]...
[DCL]...
COMMENT is a JavaDoc comment:
'/**' NL
COMMENT_LEADER SHORT_DESC
( COMMENT_LEADER LONG_DESC )*
( COMMENT_LEADER TAG )*
'*/' NL
NL is a newline character ('\r?\n')
COMMENT_LEADER is an optional comment leader
( SP* '*' SP* )?
SHORT_DESC is always the first line in the comment
LINE
LONG_DESC is zero or more lines following SHORT_DESC
DESC
TAG is one of SEE, PARAM, RETURN, EXAMPLE, DEPRECATED, TODO, AUTHOR
SEE is a reference to a symbol:
'@see' SYMBOL
PARAM is a procedure parameter, or member in a data structure
'@param' SP IDENT SP DESC
RETURN is the return value of a procedure
'@param' SP DESC
EXAMPLE is multiply lines with example code
'@example' SP LINE
IDESC
SP is a white space character (one of ' ' (0x20), '\t' (0x09))
LINE is a line, with comment leader and TAG removed. A LINE can
contain a MARKER
DESC is zero or more LINE's
SYMBOL is a WORD
IDENT is a WORD
WORD is everything but a white space character
IDESC is DESC with indentation preserved
MARKER is an inline marker, one of MARKER_LINK, MARKER_CODE
MARKER_LINK is an inline SYMBOL reference
'{@link' SP SYMBOL '}'
MARKER_CODE is inline code
'{@code' SP BRA_BLCE '}'
BRA_BLCE is balanced curly brackets, for each opening bracket ('{') a
closing bracket must be present ('}')
DCL is a declaration a comment
( DCL_S | DCL_C | DCL_PR | DCL_PROC | DCL_DS )
DCL_S is a standalone declaration
'dcl-s' IDENT .* EXPORT*
DCL_C is a constant declaration
'dcl-c' IDENT .* EXPORT*
DCL_PR is a prototype declaration
'dcl-pr' IDENT .* EXPORT*
DCL_PROC is a procedure declaration
'dcl-proc' IDENT .* EXPORT*
DCL_DS is a data structure declaration
'dcl-ds' IDENT .* EXPORT*