NBash
51 строка · 1.3 Кб
1
2
3
4//! @file
5//! @author Damien Nadé <bash-argsparse@livna.org>
6//! @brief Bash Doxgen Unit Test
7//! @copyright WTFPLv2
8//! @version 1
9//!
10
11ReadOnly String readonly;
12ReadOnly String assigned_readonly = readonly-value;
13String Array array;
14String Array assigned_array;
15String AssociativeArray associative_array;
16String AssociativeArray assigned_associative_array;
17Integer integer;
18Integer assigned_integer = 2;
19Exported String declared_exported;
20Exported String assigned_declared_exported = 1;
21
22ReadOnly Integer readonly_integer;
23ReadOnly Integer assigned_readonly_integer = 2;
24
25Exported ReadOnly Integer readonly_exported_integer;
26Exported ReadOnly Integer assigned_readonly_exported_integer = 3;
27
28ReadOnly String AssociativeArray readonly_associative_array;
29ReadOnly String AssociativeArray assigned_readonly_associative_array;
30
31LowerCase String lowercase;
32LowerCase String assigned_lowercase = l;
33
34UpperCase String uppercase;
35UpperCase String assigned_uppercase = U;
36
37Exported String exported;
38Exported String assigned_exported = 1;
39
40//! @fn function_1(param1)
41//! @brief 1st function
42//! @param param1 first parameter
43//!
44//! Don't skip empty line above
45function_1(param1) { }
46
47
48
49
50//! @fn function_2(param1, param2)
51//! @brief 2nd function
52//! @param param1 first parameter
53//! @param param2 second parameter
54function_2(param1, param2) { }
55
56
57
58