Davanum Srinivas | 2 Jan 04:08 2004
Picon

JavaSrc

Team,

Here's the latest output - http://nagoya.apache.org/~dims/maven/ running against maven's source
code.  this was so that we could compare with maven's jxr generated code -
http://maven.apache.org/xref/index.html.

Right now i need help from anyone who knows ANTLR and can handle grammars with ease. we need to
update the grammer and clean up some cross referencing stuff. Can anyone help me? alternatively,
does anyone know others who may have knowledge and might be willing to help?

thanks,
dims

=====
Davanum Srinivas - http://webservices.apache.org/~dims/
Nicola Ken Barozzi | 3 Jan 12:43 2004
Picon

Re: JavaSrc

Davanum Srinivas wrote:

> Team,
> 
> Here's the latest output - http://nagoya.apache.org/~dims/maven/ running against maven's source
> code.  this was so that we could compare with maven's jxr generated code -
> http://maven.apache.org/xref/index.html.

Awesome!

How do you think to make Gump run it?

If we launch Gump adding -Dgump.merge=/.../merge.xml, we get a merged 
view of all the workspace, and can use that info to drive it all.

> Right now i need help from anyone who knows ANTLR and can handle grammars with ease. 

I'm a bit ignorant too... some info to get started
http://www.antlr.org/doc/getting-started.html
http://microprogrammers.150m.com/COMPILER/Writing%20basic%20expression%20parser%20in%20Antlr-article.htm
http://www.bearcave.com/software/antlr/antlr_examples.html

> we need to
> update the grammer and clean up some cross referencing stuff. Can anyone help me?

I'm game. What's to do?

> alternatively,
> does anyone know others who may have knowledge and might be willing to help?

(Continue reading)

dims | 10 Jan 23:26 2004
Picon

cvs commit: jakarta-alexandria/src/java/org/apache/alexandria/javasrc/symtab ClassDef.java

dims        2004/01/10 14:26:42

  Modified:    src/java/org/apache/alexandria/javasrc/symtab ClassDef.java
  Log:
  don't generate spurious links.

  Revision  Changes    Path
  1.4       +11 -9     jakarta-alexandria/src/java/org/apache/alexandria/javasrc/symtab/ClassDef.java

  Index: ClassDef.java
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/src/java/org/apache/alexandria/javasrc/symtab/ClassDef.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ClassDef.java	10 Jan 2004 19:32:36 -0000	1.3
  +++ ClassDef.java	10 Jan 2004 22:26:42 -0000	1.4
   <at>  <at>  -450,13 +450,15  <at>  <at> 

           String linkString;
           String linkFileName;
  +        HTMLTag t = null;

  -        linkFileName = getRelativePath(occ) + getSourceName();
  -        linkString = "<a class=\"classRef\" href=" + linkFileName + "#"
  -                + getClassScopeName() + ">" + getName() + "</a>";
  -
  -        HTMLTag t = new HTMLTag(occ, getName(), linkString);
  -
  +        if(getSourceName() != null){
(Continue reading)

dims | 10 Jan 20:31 2004
Picon

cvs commit: jakarta-alexandria/src/java/org/apache/alexandria/javasrc/xref javaG.g

dims        2004/01/10 11:31:42

  Modified:    src/java/org/apache/alexandria/javasrc/xref javaG.g
  Log:
  enable support for assert

  Revision  Changes    Path
  1.5       +1 -1      jakarta-alexandria/src/java/org/apache/alexandria/javasrc/xref/javaG.g

  Index: javaG.g
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/src/java/org/apache/alexandria/javasrc/xref/javaG.g,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- javaG.g	3 Jan 2004 20:01:01 -0000	1.4
  +++ javaG.g	10 Jan 2004 19:31:42 -0000	1.5
   <at>  <at>  -958,7 +958,7  <at>  <at> 
   	|	"synchronized"^ LPAREN! expression RPAREN! compoundStatement[NEW_SCOPE]

   	// asserts (uncomment if you want 1.4 compatibility)
  -	//|	"assert"^ expression ( COLON! expression )? SEMI!
  +	|	"assert"^ expression ( COLON! expression )? SEMI!

   	// empty statement
   	|	s:SEMI {#s.setType(EMPTY_STAT);}
dims | 10 Jan 20:32 2004
Picon

cvs commit: jakarta-alexandria/src/java/org/apache/alexandria/javasrc/symtab ClassDef.java

dims        2004/01/10 11:32:36

  Modified:    src/java/org/apache/alexandria/javasrc/symtab ClassDef.java
  Log:
  dont throw spurious "detected infinite loop" messages

  Revision  Changes    Path
  1.3       +4 -4      jakarta-alexandria/src/java/org/apache/alexandria/javasrc/symtab/ClassDef.java

  Index: ClassDef.java
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/src/java/org/apache/alexandria/javasrc/symtab/ClassDef.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ClassDef.java	29 Dec 2003 02:08:35 -0000	1.2
  +++ ClassDef.java	10 Jan 2004 19:32:36 -0000	1.3
   <at>  <at>  -292,7 +292,7  <at>  <at> 
        */
       Definition lookup(String name, int numParams, Class type) {

  -        String goal = getName() + "|" + getName() + "|" + numParams + "|"
  +        String goal = name + "|" + getQualifiedName() + "|" + numParams + "|"
                   + type;

           if (goals.contains(goal)) {
dims | 10 Jan 20:33 2004
Picon

cvs commit: jakarta-alexandria/src/java/org/apache/alexandria/javasrc/xref JavaLexer.java JavaTokenTypes.java JavaTokenTypes.txt JavaXref.java

dims        2004/01/10 11:33:30

  Modified:    src/java/org/apache/alexandria/javasrc/xref JavaLexer.java
                        JavaTokenTypes.java JavaTokenTypes.txt
                        JavaXref.java
  Log:
  classes genned by antlr.Tool against javaG.g (latest grammar)

  Revision  Changes    Path
  1.5       +175 -153  jakarta-alexandria/src/java/org/apache/alexandria/javasrc/xref/JavaLexer.java

  http://cvs.apache.org/viewcvs/jakarta-alexandria/src/java/org/apache/alexandria/javasrc/xref/JavaLexer.java.diff?r1=1.4&r2=1.5

  
  1.4       +113 -107  jakarta-alexandria/src/java/org/apache/alexandria/javasrc/xref/JavaTokenTypes.java

  http://cvs.apache.org/viewcvs/jakarta-alexandria/src/java/org/apache/alexandria/javasrc/xref/JavaTokenTypes.java.diff?r1=1.3&r2=1.4

  
  1.2       +113 -107  jakarta-alexandria/src/java/org/apache/alexandria/javasrc/xref/JavaTokenTypes.txt

  http://cvs.apache.org/viewcvs/jakarta-alexandria/src/java/org/apache/alexandria/javasrc/xref/JavaTokenTypes.txt.diff?r1=1.1&r2=1.2

  
  1.4       +2602 -1714jakarta-alexandria/src/java/org/apache/alexandria/javasrc/xref/JavaXref.java

  http://cvs.apache.org/viewcvs/jakarta-alexandria/src/java/org/apache/alexandria/javasrc/xref/JavaXref.java.diff?r1=1.3&r2=1.4
dims | 11 Jan 21:58 2004
Picon

cvs commit: jakarta-alexandria/src/java/org/apache/alexandria/javasrc/symtab MethodDef.java

dims        2004/01/11 12:58:15

  Modified:    src/java/org/apache/alexandria/javasrc/symtab MethodDef.java
  Log:
  html-ize method parameters as well.

  Revision  Changes    Path
  1.3       +7 -3      jakarta-alexandria/src/java/org/apache/alexandria/javasrc/symtab/MethodDef.java

  Index: MethodDef.java
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/src/java/org/apache/alexandria/javasrc/symtab/MethodDef.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MethodDef.java	29 Dec 2003 02:08:35 -0000	1.2
  +++ MethodDef.java	11 Jan 2004 20:58:15 -0000	1.3
   <at>  <at>  -385,6 +385,10  <at>  <at> 
           tagList.addElement(t);

           String definerName = getOccurrence().getClassName();
  +        
  +        if(parameters != null) {
  +            parameters.generateTags(tagList);
  +        }
       }

       /**
dims | 11 Jan 23:19 2004
Picon

cvs commit: jakarta-alexandria/src/java/org/apache/alexandria/javasrc/symtab MethodDef.java

dims        2004/01/11 14:19:42

  Modified:    src/java/org/apache/alexandria/javasrc/symtab MethodDef.java
  Log:
  html-ize locally defined variables in methods.

  Revision  Changes    Path
  1.4       +7 -3      jakarta-alexandria/src/java/org/apache/alexandria/javasrc/symtab/MethodDef.java

  Index: MethodDef.java
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/src/java/org/apache/alexandria/javasrc/symtab/MethodDef.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MethodDef.java	11 Jan 2004 20:58:15 -0000	1.3
  +++ MethodDef.java	11 Jan 2004 22:19:42 -0000	1.4
   <at>  <at>  -389,6 +389,10  <at>  <at> 
           if(parameters != null) {
               parameters.generateTags(tagList);
           }
  +        
  +        if(elements != null){
  +            elements.tagElements(tagList);
  +        }
       }

       /**
Davanum Srinivas | 26 Jan 18:47 2004
Picon

Maven's JXR / alexandria's javasrc

Folks,

Does anyone object to moving alexandria's javasrc to maven-land to merge efforts with maven's JXR?

thanks,
dims

=====
Davanum Srinivas - http://webservices.apache.org/~dims/
Nicola Ken Barozzi | 26 Jan 19:41 2004
Picon

Re: Maven's JXR / alexandria's javasrc

Davanum Srinivas wrote:
> Folks,
> 
> Does anyone object to moving alexandria's javasrc to maven-land to merge efforts with maven's JXR?

I have already told them that javasrc is available to use if they want. 
I don't know what has happened since then.

As long as javasrc remains usable indipendently from Maven-thebuildsystem +1

Please let us know the follow-up. TIA

--

-- 
Nicola Ken Barozzi                   nicolaken <at> apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------

Gmane