[antlr-interest] ANTLR Runtime/SDK jar mixtures and suggestions

christian.ernst at poet.de christian.ernst at poet.de
Tue Nov 13 04:18:17 PST 2001


Hy Folks !
It seems that the runtime antlr.jar build through the mkjar.bat
has some unresolved dependicies.
The Main problem is that there seems not to be any concept of 
seperating the Generater Tool Classes from the Classes used by 
generated Parser/Treeparser.

So i suggest following changes:

Class: antlr.Tool 
ToDo: Move static Methods to own Class for example StringTool
Methods:
stripFront(..)
stripBack(..)
stripFrontBack(..)

Class: ASTFactory
ToDo: change Methods for error Output from Tool.warning to 
System.err.println()
Methods:
create()
setAstNodeTyp(..)

Now there are no more dependicies 
and it is possible to build a small nifty runtime jar of 53k
You have only to include following classes:
antlr/SemanticException.class
antlr/CharFormatter.class
antlr/Parser.class
antlr/TokenQueue.class
antlr/CharStreamException.class
antlr/FileLineFormatter.class
antlr/ANTLRHashString.class
antlr/ANTLRStringBuffer.class
antlr/LexerSharedInputState.class
antlr/LLkParser.class
antlr/MismatchedCharException.class
antlr/TreeParserSharedInputState.class
antlr/MismatchedTokenException.class
antlr/CharScanner.class
antlr/ASTNULLType.class
antlr/CharStreamIOException.class
antlr/TokenStreamException.class
antlr/TokenBuffer.class
antlr/NoViableAltException.class
antlr/TokenStreamHiddenTokenFilter.class
antlr/TokenStreamSelector.class
antlr/TreeParser.class
antlr/CommonToken.class
antlr/TokenStream.class
antlr/BaseAST.class
antlr/NoViableAltForCharException.class
antlr/StringTool.class
antlr/TokenStreamBasicFilter.class
antlr/CharQueue.class
antlr/ByteBuffer.class
antlr/RecognitionException.class
antlr/InputBuffer.class
antlr/ASTFactory.class
antlr/ParserSharedInputState.class
antlr/TokenStreamRecognitionException.class
antlr/DefaultFileLineFormatter.class
antlr/ASTPair.class
antlr/CharBuffer.class
antlr/LLkASTSupportParser.class
antlr/ANTLRException.class
antlr/TokenStreamIOException.class
antlr/CommonAST.class
antlr/Token.class
antlr/CommonHiddenStreamToken.class
antlr/TokenStreamRetryException.class
antlr/collections/Stack.class
antlr/collections/AST.class
antlr/collections/List.class
antlr/collections/ASTEnumeration.class
antlr/collections/impl/VectorEnumerator.class
antlr/collections/impl/LLCell.class
antlr/collections/impl/Vector.class
antlr/collections/impl/LLEnumeration.class
antlr/collections/impl/BitSet.class
antlr/collections/impl/ASTArray.class
antlr/collections/impl/ASTEnumerator.class
antlr/collections/impl/IntRange.class
antlr/collections/impl/LList.class
antlr/debug/GuessingEvent.class
antlr/debug/ListenerBase.class
antlr/debug/ParserMatchListener.class
antlr/debug/SemanticPredicateEvent.class
antlr/debug/ParserTokenListener.class
antlr/debug/ParserTokenEvent.class
antlr/debug/ParserListener.class
antlr/debug/SemanticPredicateListener.class
antlr/debug/MessageEvent.class
antlr/debug/MessageListener.class
antlr/debug/TraceListener.class
antlr/debug/SyntacticPredicateEvent.class
antlr/debug/TraceEvent.class
antlr/debug/Event.class
antlr/debug/ParserMatchEvent.class
antlr/debug/SyntacticPredicateListener.class

mfg 
christian
 


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list