bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC] New requirement for plug-in parser.


From: Hideki IWAMOTO
Subject: Re: [RFC] New requirement for plug-in parser.
Date: Fri, 10 Feb 2006 23:17:34 +0900

On Tue, 31 Jan 2006 20:46:43 +0900, Shigio YAMAGUCHI wrote...
> 2. In a file, plug-in parser must write tags out as they are encounterd.
> 
>       $ ctags -xu a.c
>       main          25 a.c  main(int argc, char *argv[])
>       func          45 a.c  func() {
>                      ^
>                      |
>                     *** order: line 25 -> line 45
> 
> (end of requirement)

gtags-parser cannot satisfy requirement 2.
Therefore, this should not be required of plug-in parser.

---------- example ----------
$ cat a.c
typedef int INT;

INT
foo(
INT x,
INT y);

INT foo(INT x, INT y){return 0;}
$ gtags-parser -dtr a.c
INT                 3 a.c              INT
INT                 5 a.c              INT x,
INT                 6 a.c              INT y);
foo                 4 a.c              foo(    <================================
INT                 8 a.c              INT foo(INT x, INT y){return 0;}
INT                 8 a.c              INT foo(INT x, INT y){return 0;}
INT                 8 a.c              INT foo(INT x, INT y){return 0;}

----
Hideki IWAMOTO  address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]