[antlr-interest] Lean runtime jar

Christopher Schultz christopher.d.schultz at comcast.net
Thu Feb 3 15:15:07 PST 2005


Jeremy,

> OK, well I've done a quick parse and looked at the generated AST with
> java -verbose switched on, so this is my first cut at required classes...
> 
> 
> This is a pointer to the latest version
>   http://tinyurl.com/6fxr5

I had to make the following changes. I assume you didn't test this?

(Ugh, the diff pasted terribly. Here's a recap):

* Added mkdir antlr-runtime/collections/impl
* Added antlr/CharFormatter.class
* Changed antlr/collections/impl lines to copy to correct subdir

Note that I'm using antlr 2.7.3, but that shouldn't make much of a 
difference.

-chris

Here's the diff:

<==== cut here ====>

[antlr-runtime]$ diff -c make-antlr-runtime.sh~ make-antlr-runtime.sh
*** make-antlr-runtime.sh~      2005-02-03 17:55:14.000000000 -0500
--- make-antlr-runtime.sh       2005-02-03 18:09:02.000000000 -0500
***************
*** 13,18 ****
--- 13,19 ----
   mkdir antlr-runtime
   mkdir antlr-runtime/antlr
   mkdir antlr-runtime/antlr/collections
+ mkdir antlr-runtime/antlr/collections/impl
   mkdir antlr-runtime/antlr/debug
   mkdir antlr-runtime/antlr/debug/misc

***************
*** 24,29 ****
--- 25,31 ----
   cp antlr/BaseAST.class antlr-runtime/antlr
   cp antlr/ByteBuffer.class antlr-runtime/antlr
   cp antlr/CharBuffer.class antlr-runtime/antlr
+ cp antlr/CharFormatter.class antlr-runtime/antlr
   cp antlr/CharQueue.class antlr-runtime/antlr
   cp antlr/CharScanner.class antlr-runtime/antlr
   cp antlr/CharStreamException.class antlr-runtime/antlr
***************
*** 51,58 ****
   cp antlr/Token.class antlr-runtime/antlr
   cp antlr/collections/ASTEnumeration.class 
antlr-runtime/antlr/collections
   cp antlr/collections/AST.class antlr-runtime/antlr/collections
! cp antlr/collections/impl/ASTArray.class antlr-runtime/antlr/collections
! cp antlr/collections/impl/BitSet.class antlr-runtime/antlr/collections
   cp antlr/debug/misc/ASTFrame\$1.class antlr-runtime/antlr/debug/misc
   cp antlr/debug/misc/ASTFrame\$MyTreeSelectionListener.class 
antlr-runtime/antl
r/debug/misc
   cp antlr/debug/misc/ASTFrame.class antlr-runtime/antlr/debug/misc
--- 53,62 ----
   cp antlr/Token.class antlr-runtime/antlr
   cp antlr/collections/ASTEnumeration.class antlr-runtime/antlr/collections
   cp antlr/collections/AST.class antlr-runtime/antlr/collections
! cp antlr/collections/impl/ASTArray.class 
antlr-runtime/antlr/collections/impl
! cp antlr/collections/impl/BitSet.class 
antlr-runtime/antlr/collections/impl
! cp antlr/collections/impl/IntRange.class 
antlr-runtime/antlr/collections/impl
! cp antlr/collections/impl/Vector.class 
antlr-runtime/antlr/collections/impl
   cp antlr/debug/misc/ASTFrame\$1.class antlr-runtime/antlr/debug/misc
   cp antlr/debug/misc/ASTFrame\$MyTreeSelectionListener.class 
antlr-runtime/antl
r/debug/misc
   cp antlr/debug/misc/ASTFrame.class antlr-runtime/antlr/debug/misc
***************
*** 60,64 ****
   cp antlr/debug/misc/JTreeASTPanel.class antlr-runtime/antlr/debug/misc

   cd antlr-runtime
! jar cvf ../antlr-runtime.jar antlr
   cd ..
--- 64,68 ----
   cp antlr/debug/misc/JTreeASTPanel.class antlr-runtime/antlr/debug/misc

   cd antlr-runtime
! jar cvf ../antlr-2.7.3-runtime.jar antlr
   cd ..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20050203/dc6d1b38/signature.bin


More information about the antlr-interest mailing list