You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,20 @@
4
4
5
5
[See below for more screenshots](#more-screenshots)
6
6
7
-
[Go to downloadable releases - forthcoming](https://github.com/some-avail/codetwig/releases"Downloads for CodeTwig")
7
+
[Go to downloadable releases](https://github.com/some-avail/codetwig/releases"Downloads for CodeTwig")
8
8
9
9
[Go to the user-manual](mostfiles/manual_codetwig.txt)
10
10
11
11
12
+
#### Forthcoming version: 0.35
12
13
13
-
####Description CodeTwig
14
+
### Description CodeTwig
14
15
15
16
CodeTwig is terminal-program to view the outline of the source-code and to show procedures as usage-trees or used-by-trees. Allthough the tree-function is working quite well, the program is still young. See future-plans below.
16
17
Currently only meant for Nim.
17
18
18
19
19
-
####Installation by building
20
+
### Installation by building
20
21
Since the program (at this stage) is for Nim only, users = programmers are assumed to be able to build the executable themselves.
21
22
Developers can download a release, or clone the code
22
23
(CodeTwig has no external components) and do the following:
@@ -26,7 +27,7 @@ nim c -d:release ctwig.nim
26
27
which will compile the code to an executable for you local OS.
27
28
28
29
29
-
####Using CodeTwig
30
+
### Using CodeTwig
30
31
[Go to the user-manual](mostfiles/manual_codetwig.txt)
31
32
32
33
@@ -35,18 +36,24 @@ which will compile the code to an executable for you local OS.
Running this command will create a list of declarations. Declarations are the various procs, template, macros and functions. The file is not very readable, but will be used to create addtional views. Also it is parsed to generate the proc-trees on the fly. (see later). The list contains:
52
52
- declarations (like procs) for all source-files
53
53
- declarations that are used in above declarations (these are appended to above line)
54
+
55
+
The arise of the dec-list happens in three phases, whereby phase 3 is the version that is used by other functions.
Running this command will create some views of the source-code. Currently four views are available, basic and extended view with one level or two levels. The one-level-files show the source-files and the declarations only (usually mostly procs), and the two-level-files shows the usages of each declaration (used procs). The extended provide also the paramaters of function and the added comment.
64
+
Running this command will create some views of the source-code. Currently four views are available, basic and extended view with one level or two levels. The one-level-files show the source-files and the declarations only (usually mostly procs), and the two-level-files shows the (first-level) usages of each declaration (used procs). The extended ones provide also the parameters of function and the added comment.
This command generates both the declaration-list and all of the views. Us it if you want tu update your project and are not interested in the output screen-notification.
79
+
This command generates both the declaration-list and all of the views. Use it if you want to update your project and are not interested in the output screen-notification.
ctwig projects/yourproject.pro -c:t (using the defaults)
85
94
86
95
Seps can be ommitted:
87
96
ctwig projects/yourproject.pro -ct -ru -d2
88
97
89
-
Lastly above command starts with a box in which a substring can be entered to search for a declaration. Then a list of declarations is displayed which have the substring in them. If the entered substring matches only one declaration, a tree is shown based on the parameters direction and depth. The direction usage refers to the calls to other procs that are made in the proc, where used-by stands for all the procs that are using the declaration (so the reverse process). The depths stands for the number of levels that are shown.
90
98
99
+
Lastly above command starts with a box in which a substring can be entered to search for a declaration. Then a list of declarations is displayed which have the substring in them. If the entered substring matches only one declaration, a tree is shown based on the parameters direction and depth. The direction usage refers to the calls to other procs that are made in the proc, where used-by stands for all the procs that are using the declaration (so the reverse process). The depths stands for the number of levels that are shown.
91
100
101
+
As off CT 0.35 you can add a semi-column to indicate not only declaration but module as well, like so:
102
+
declaration;module
103
+
This is needed to show same-named decs.
92
104
105
+
Also now declarational arguments and comment are added to the chosen declaration.
0 commit comments