fgl.c : Creating tags for INFORMIX 4GL/4Js programs under UNIX environment
script karma |
Rating 15/5,
Downloaded by 3012 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Tim Kim |
|
script type |
utility |
|
description |
The zip file contains three files - fgl.c, parsers.h, and source.mak.
When 'fgl.c' file in fgl.zip is compiled with exuberant ctags source files, which you can download, ctags(executable) will generate tags for functions, cursor ids, prepared statements id, and global/module level variables. I compiled exuberant ctags source in AIX and Linux without any problem. Only trouble I faced was that source codes in ctags-5.4 tar file had DOS line breaks and had to translate them to UNIX line breaks using dos2unix utility.
If you use taglist.vim, add the following lines in taglist.vim script.
Scroll down the script to a section where tag types are defined for different languages:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
" fgl language
let s:tlist_def_fgl_settings = 'fgl;f:function;c:cursor;s:prepared;v:variable'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
install details |
1. Download Exuberant ctags source at "http://sourceforge.net/project/showfiles.php?group_id=6556" and decompress into a directory
2. Unzip fgl.zip file to the same source directory.
3. You should convert DOS line breaks to UNIX line breaks if necessary
4. Type ". ./configure" in the directory
5. Type "make" to compile source codes
6. Copy ctags(executable) to a directory whose execution path is recognized
7. Add the following line to .vimrc/.gvimrc to set tag option in vim/gvim
set tag=tags
This line tells vim to look for a file 'tags' in the current directory. You may want to specify the path as well (ex. set tag=~/tmp/tags) to put the output to another directory. Also you can set more than a tag file separated by a space.
8. Type "ctags *.4gl" in your 4GL program directory. This will create a tag file in the current directory. Using -f option, you can put the output tag file in another directory. In this case, just make sure that vim's tag option (in .vimrc) is set to a right directory. (For more help, type 'ctags --help')
9. Now you are ready to use tags in vim/gvim/vi. Open a 4gl file -> place the cursor on tag(function, 4GL cursor, ..) -> press CTRL+] to jump to its definition, or CTRL+t to jump back
|
|
script versions (upload new version)
Click on the package to download.
fgl.zip |
1.7 |
2008-12-06 |
6.0 |
Tim Kim |
Added a logic to recognize report function |
fgl.zip |
1.6 |
2008-10-28 |
6.0 |
Tim Kim |
Fix for recognizing curly brackets for comments |
fgl.zip |
1.5 |
2008-07-19 |
6.0 |
Tim Kim |
A bug fix when comment finishes with a curly bracket. |
fgl.zip |
1.4 |
2008-07-11 |
6.0 |
Tim Kim |
Catches variables ending with comment
(ex. define xxx char(1) #bla blas)
|
fgl.zip |
1.3 |
2008-07-09 |
6.0 |
Tim Kim |
A few bugs fixed |
fgl.zip |
1.2 |
2008-07-03 |
6.0 |
Tim Kim |
Improved code efficiency -> faster to create tags |
fgl.zip |
1.1 |
2008-06-28 |
6.0 |
Tim Kim |
Cursor id, prepared statement id, variables are added for tag creation. (global and module scope variables are add. The names of variable should start g_xxx, m_xxx, respectively. Other naming conventions change the prefix in fgl.c) |
fgl.tar |
1.0 |
2003-03-18 |
6.0 |
Tim Kim |
Initial upload |
ip used for rating: 18.118.253.134
|