You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by je...@apache.org on 2002/11/24 19:37:36 UTC

cvs commit: jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd ClientLexer.java ClientParser.java SlideTokenTypes.java

jericho     2002/11/24 10:37:35

  Modified:    .        build.xml
  Added:       src/webdav/client/src/org/apache/webdav/cmd ClientLexer.java
                        ClientParser.java SlideTokenTypes.java
  Log:
  - Add generated files by "antlr.Tool Client.g"
  - Fix build file not to use antlr in compile time directly.
    (Even though every next time we (I mean developers) should generate
     the java files from antlr manually.   It gives easy compilation to users.)
  
  Revision  Changes    Path
  1.174     +4 -5      jakarta-slide/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/build.xml,v
  retrieving revision 1.173
  retrieving revision 1.174
  diff -u -r1.173 -r1.174
  --- build.xml	14 Nov 2002 00:44:25 -0000	1.173
  +++ build.xml	24 Nov 2002 18:37:35 -0000	1.174
  @@ -678,14 +678,13 @@
        excludes="**/CVS/**,**/package.html">
         <classpath refid="webdavclient.classpath"/>
         <exclude name="**/ant/**" unless="ant.present" />
  -      <exclude name="**/cmd/**" />
  +      <exclude name="**/cmd/*.g" />
       </javac>
   
  -    <antlr target="src/webdav/client/src/org/apache/webdav/cmd/Client.g"
  +    <!-- antlr target="src/webdav/client/src/org/apache/webdav/cmd/Client.g"
              outputdirectory="${webdavclient.build}/src/org/apache/webdav/cmd">
  -      <!-- Reenable this whenever we can dare to require Ant 1.5 -->
  -      <!-- classpath refid="webdavclient.classpath"/ -->
  -    </antlr>
  +      <classpath refid="webdavclient.classpath"/>
  +    </antlr -->
   
       <javac srcdir="${webdavclient.build}/src"
        destdir="${webdavclient.build}/classes"
  
  
  
  1.1                  jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/ClientLexer.java
  
  Index: ClientLexer.java
  ===================================================================
  // $ANTLR 2.7.1: "Client.g" -> "ClientLexer.java"$
  
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/ClientLexer.java,v 1.1 2002/11/24 18:37:35 jericho Exp $
   * $Revision: 1.1 $
   * $Date: 2002/11/24 18:37:35 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Slide", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  package org.apache.webdav.cmd;
  
  import java.io.*;
  import java.util.*;
  import org.apache.util.QName;
  import org.apache.webdav.lib.PropertyName;
  
  
  import java.io.InputStream;
  import antlr.TokenStreamException;
  import antlr.TokenStreamIOException;
  import antlr.TokenStreamRecognitionException;
  import antlr.CharStreamException;
  import antlr.CharStreamIOException;
  import antlr.ANTLRException;
  import java.io.Reader;
  import java.util.Hashtable;
  import antlr.CharScanner;
  import antlr.InputBuffer;
  import antlr.ByteBuffer;
  import antlr.CharBuffer;
  import antlr.Token;
  import antlr.CommonToken;
  import antlr.RecognitionException;
  import antlr.NoViableAltForCharException;
  import antlr.MismatchedCharException;
  import antlr.TokenStream;
  import antlr.ANTLRHashString;
  import antlr.LexerSharedInputState;
  import antlr.collections.impl.BitSet;
  import antlr.SemanticException;
  
  /**
   * The Slide WebDAV client scanner.
   *
   * @version     $Revision: 1.1 $ $Date: 2002/11/24 18:37:35 $
   * @author      Dirk Verbeeck 
   */
  public class ClientLexer extends antlr.CharScanner implements SlideTokenTypes, TokenStream
   {
  public ClientLexer(InputStream in) {
  	this(new ByteBuffer(in));
  }
  public ClientLexer(Reader in) {
  	this(new CharBuffer(in));
  }
  public ClientLexer(InputBuffer ib) {
  	this(new LexerSharedInputState(ib));
  }
  public ClientLexer(LexerSharedInputState state) {
  	super(state);
  	literals = new Hashtable();
  	literals.put(new ANTLRHashString("propfind", this), new Integer(37));
  	literals.put(new ANTLRHashString("mkws", this), new Integer(64));
  	literals.put(new ANTLRHashString("unlock", this), new Integer(47));
  	literals.put(new ANTLRHashString("to", this), new Integer(50));
  	literals.put(new ANTLRHashString("principalcollectionset", this), new Integer(55));
  	literals.put(new ANTLRHashString("checkin", this), new Integer(58));
  	literals.put(new ANTLRHashString("get", this), new Integer(44));
  	literals.put(new ANTLRHashString("mv", this), new Integer(71));
  	literals.put(new ANTLRHashString("exit", this), new Integer(65));
  	literals.put(new ANTLRHashString("open", this), new Integer(17));
  	literals.put(new ANTLRHashString("mkcol", this), new Integer(30));
  	literals.put(new ANTLRHashString("lls", this), new Integer(25));
  	literals.put(new ANTLRHashString("dir", this), new Integer(29));
  	literals.put(new ANTLRHashString("lock", this), new Integer(46));
  	literals.put(new ANTLRHashString("connect", this), new Integer(16));
  	literals.put(new ANTLRHashString("locks", this), new Integer(48));
  	literals.put(new ANTLRHashString("copy", this), new Integer(33));
  	literals.put(new ANTLRHashString("acl", this), new Integer(54));
  	literals.put(new ANTLRHashString("del", this), new Integer(35));
  	literals.put(new ANTLRHashString("checkout", this), new Integer(59));
  	literals.put(new ANTLRHashString("propput", this), new Integer(72));
  	literals.put(new ANTLRHashString("cd", this), new Integer(23));
  	literals.put(new ANTLRHashString("on", this), new Integer(13));
  	literals.put(new ANTLRHashString("pwd", this), new Integer(21));
  	literals.put(new ANTLRHashString("mkdir", this), new Integer(31));
  	literals.put(new ANTLRHashString("disconnect", this), new Integer(18));
  	literals.put(new ANTLRHashString("move", this), new Integer(32));
  	literals.put(new ANTLRHashString("cp", this), new Integer(70));
  	literals.put(new ANTLRHashString("set", this), new Integer(68));
  	literals.put(new ANTLRHashString("echo", this), new Integer(12));
  	literals.put(new ANTLRHashString("rm", this), new Integer(36));
  	literals.put(new ANTLRHashString("report", this), new Integer(61));
  	literals.put(new ANTLRHashString("debug", this), new Integer(14));
  	literals.put(new ANTLRHashString("spool", this), new Integer(8));
  	literals.put(new ANTLRHashString("cc", this), new Integer(24));
  	literals.put(new ANTLRHashString("pwc", this), new Integer(20));
  	literals.put(new ANTLRHashString("off", this), new Integer(10));
  	literals.put(new ANTLRHashString("versioncontrol", this), new Integer(56));
  	literals.put(new ANTLRHashString("grant", this), new Integer(49));
  	literals.put(new ANTLRHashString("ldir", this), new Integer(26));
  	literals.put(new ANTLRHashString("propget", this), new Integer(38));
  	literals.put(new ANTLRHashString("help", this), new Integer(4));
  	literals.put(new ANTLRHashString("options", this), new Integer(15));
  	literals.put(new ANTLRHashString("ls", this), new Integer(28));
  	literals.put(new ANTLRHashString("status", this), new Integer(7));
  	literals.put(new ANTLRHashString("propfindall", this), new Integer(40));
  	literals.put(new ANTLRHashString("ereport", this), new Integer(62));
  	literals.put(new ANTLRHashString("close", this), new Integer(69));
  	literals.put(new ANTLRHashString("from", this), new Integer(53));
  	literals.put(new ANTLRHashString("principalcol", this), new Integer(73));
  	literals.put(new ANTLRHashString("lpwd", this), new Integer(19));
  	literals.put(new ANTLRHashString("bye", this), new Integer(67));
  	literals.put(new ANTLRHashString("quit", this), new Integer(66));
  	literals.put(new ANTLRHashString("delete", this), new Integer(34));
  	literals.put(new ANTLRHashString("put", this), new Integer(45));
  	literals.put(new ANTLRHashString("deny", this), new Integer(51));
  	literals.put(new ANTLRHashString("propgetall", this), new Integer(41));
  	literals.put(new ANTLRHashString("run", this), new Integer(11));
  	literals.put(new ANTLRHashString("uncheckout", this), new Integer(60));
  	literals.put(new ANTLRHashString("lcd", this), new Integer(22));
  	literals.put(new ANTLRHashString("update", this), new Integer(57));
  	literals.put(new ANTLRHashString("proppatch", this), new Integer(42));
  	literals.put(new ANTLRHashString("lreport", this), new Integer(63));
  	literals.put(new ANTLRHashString("revoke", this), new Integer(52));
  caseSensitiveLiterals = false;
  setCaseSensitive(true);
  }
  
  public Token nextToken() throws TokenStreamException {
  	Token theRetToken=null;
  tryAgain:
  	for (;;) {
  		Token _token = null;
  		int _ttype = Token.INVALID_TYPE;
  		resetText();
  		try {   // for char stream error handling
  			try {   // for lexical error handling
  				switch ( LA(1)) {
  				case '\t':  case ' ':
  				{
  					mWS(true);
  					theRetToken=_returnToken;
  					break;
  				}
  				case '\n':  case '\r':
  				{
  					mEOL(true);
  					theRetToken=_returnToken;
  					break;
  				}
  				case '-':
  				{
  					mOPTIONSTRING(true);
  					theRetToken=_returnToken;
  					break;
  				}
  				case '"':  case '.':  case '/':  case '0':
  				case '1':  case '2':  case '3':  case '4':
  				case '5':  case '6':  case '7':  case '8':
  				case '9':  case ':':  case 'A':  case 'B':
  				case 'C':  case 'D':  case 'E':  case 'F':
  				case 'G':  case 'H':  case 'I':  case 'J':
  				case 'K':  case 'L':  case 'M':  case 'N':
  				case 'O':  case 'P':  case 'Q':  case 'R':
  				case 'S':  case 'T':  case 'U':  case 'V':
  				case 'W':  case 'X':  case 'Y':  case 'Z':
  				case 'a':  case 'b':  case 'c':  case 'd':
  				case 'e':  case 'f':  case 'g':  case 'h':
  				case 'i':  case 'j':  case 'k':  case 'l':
  				case 'm':  case 'n':  case 'o':  case 'p':
  				case 'q':  case 'r':  case 's':  case 't':
  				case 'u':  case 'v':  case 'w':  case 'x':
  				case 'y':  case 'z':
  				{
  					mSTRING(true);
  					theRetToken=_returnToken;
  					break;
  				}
  				case '<':
  				{
  					mQNAME(true);
  					theRetToken=_returnToken;
  					break;
  				}
  				case '?':
  				{
  					mQUESTION(true);
  					theRetToken=_returnToken;
  					break;
  				}
  				default:
  				{
  					if (LA(1)==EOF_CHAR) {uponEOF(); _returnToken = makeToken(Token.EOF_TYPE);}
  				else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine());}
  				}
  				}
  				if ( _returnToken==null ) continue tryAgain; // found SKIP token
  				_ttype = _returnToken.getType();
  				_ttype = testLiteralsTable(_ttype);
  				_returnToken.setType(_ttype);
  				return _returnToken;
  			}
  			catch (RecognitionException e) {
  				throw new TokenStreamRecognitionException(e);
  			}
  		}
  		catch (CharStreamException cse) {
  			if ( cse instanceof CharStreamIOException ) {
  				throw new TokenStreamIOException(((CharStreamIOException)cse).io);
  			}
  			else {
  				throw new TokenStreamException(cse.getMessage());
  			}
  		}
  	}
  }
  
  	public final void mWS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  		int _ttype; Token _token=null; int _begin=text.length();
  		_ttype = WS;
  		int _saveIndex;
  		
  		{
  		switch ( LA(1)) {
  		case ' ':
  		{
  			match(' ');
  			break;
  		}
  		case '\t':
  		{
  			match('\t');
  			break;
  		}
  		default:
  		{
  			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine());
  		}
  		}
  		}
  		
  		_ttype = Token.SKIP;
  		
  		if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
  			_token = makeToken(_ttype);
  			_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  		}
  		_returnToken = _token;
  	}
  	
  	public final void mEOL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  		int _ttype; Token _token=null; int _begin=text.length();
  		_ttype = EOL;
  		int _saveIndex;
  		
  		if ((LA(1)=='\r') && (LA(2)=='\n')) {
  			match("\r\n");
  		}
  		else if ((LA(1)=='\r') && (true)) {
  			match('\r');
  		}
  		else if ((LA(1)=='\n')) {
  			match('\n');
  		}
  		else {
  			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine());
  		}
  		
  		if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
  			_token = makeToken(_ttype);
  			_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  		}
  		_returnToken = _token;
  	}
  	
  	public final void mOPTIONSTRING(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  		int _ttype; Token _token=null; int _begin=text.length();
  		_ttype = OPTIONSTRING;
  		int _saveIndex;
  		
  		match('-');
  		{
  		int _cnt102=0;
  		_loop102:
  		do {
  			if ((_tokenSet_0.member(LA(1)))) {
  				mCHARS(false);
  			}
  			else {
  				if ( _cnt102>=1 ) { break _loop102; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine());}
  			}
  			
  			_cnt102++;
  		} while (true);
  		}
  		if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
  			_token = makeToken(_ttype);
  			_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  		}
  		_returnToken = _token;
  	}
  	
  	protected final void mCHARS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  		int _ttype; Token _token=null; int _begin=text.length();
  		_ttype = CHARS;
  		int _saveIndex;
  		
  		switch ( LA(1)) {
  		case 'a':  case 'b':  case 'c':  case 'd':
  		case 'e':  case 'f':  case 'g':  case 'h':
  		case 'i':  case 'j':  case 'k':  case 'l':
  		case 'm':  case 'n':  case 'o':  case 'p':
  		case 'q':  case 'r':  case 's':  case 't':
  		case 'u':  case 'v':  case 'w':  case 'x':
  		case 'y':  case 'z':
  		{
  			matchRange('a','z');
  			break;
  		}
  		case 'A':  case 'B':  case 'C':  case 'D':
  		case 'E':  case 'F':  case 'G':  case 'H':
  		case 'I':  case 'J':  case 'K':  case 'L':
  		case 'M':  case 'N':  case 'O':  case 'P':
  		case 'Q':  case 'R':  case 'S':  case 'T':
  		case 'U':  case 'V':  case 'W':  case 'X':
  		case 'Y':  case 'Z':
  		{
  			matchRange('A','Z');
  			break;
  		}
  		case '0':  case '1':  case '2':  case '3':
  		case '4':  case '5':  case '6':  case '7':
  		case '8':  case '9':
  		{
  			matchRange('0','9');
  			break;
  		}
  		case '.':
  		{
  			match('.');
  			break;
  		}
  		case ':':
  		{
  			match(':');
  			break;
  		}
  		case '/':
  		{
  			match('/');
  			break;
  		}
  		default:
  		{
  			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine());
  		}
  		}
  		if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
  			_token = makeToken(_ttype);
  			_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  		}
  		_returnToken = _token;
  	}
  	
  	public final void mSTRING(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  		int _ttype; Token _token=null; int _begin=text.length();
  		_ttype = STRING;
  		int _saveIndex;
  		
  		switch ( LA(1)) {
  		case '.':  case '/':  case '0':  case '1':
  		case '2':  case '3':  case '4':  case '5':
  		case '6':  case '7':  case '8':  case '9':
  		case ':':  case 'A':  case 'B':  case 'C':
  		case 'D':  case 'E':  case 'F':  case 'G':
  		case 'H':  case 'I':  case 'J':  case 'K':
  		case 'L':  case 'M':  case 'N':  case 'O':
  		case 'P':  case 'Q':  case 'R':  case 'S':
  		case 'T':  case 'U':  case 'V':  case 'W':
  		case 'X':  case 'Y':  case 'Z':  case 'a':
  		case 'b':  case 'c':  case 'd':  case 'e':
  		case 'f':  case 'g':  case 'h':  case 'i':
  		case 'j':  case 'k':  case 'l':  case 'm':
  		case 'n':  case 'o':  case 'p':  case 'q':
  		case 'r':  case 's':  case 't':  case 'u':
  		case 'v':  case 'w':  case 'x':  case 'y':
  		case 'z':
  		{
  			mCHARS(false);
  			{
  			int _cnt105=0;
  			_loop105:
  			do {
  				switch ( LA(1)) {
  				case '.':  case '/':  case '0':  case '1':
  				case '2':  case '3':  case '4':  case '5':
  				case '6':  case '7':  case '8':  case '9':
  				case ':':  case 'A':  case 'B':  case 'C':
  				case 'D':  case 'E':  case 'F':  case 'G':
  				case 'H':  case 'I':  case 'J':  case 'K':
  				case 'L':  case 'M':  case 'N':  case 'O':
  				case 'P':  case 'Q':  case 'R':  case 'S':
  				case 'T':  case 'U':  case 'V':  case 'W':
  				case 'X':  case 'Y':  case 'Z':  case 'a':
  				case 'b':  case 'c':  case 'd':  case 'e':
  				case 'f':  case 'g':  case 'h':  case 'i':
  				case 'j':  case 'k':  case 'l':  case 'm':
  				case 'n':  case 'o':  case 'p':  case 'q':
  				case 'r':  case 's':  case 't':  case 'u':
  				case 'v':  case 'w':  case 'x':  case 'y':
  				case 'z':
  				{
  					mCHARS(false);
  					break;
  				}
  				case '-':
  				{
  					match('-');
  					break;
  				}
  				default:
  				{
  					if ( _cnt105>=1 ) { break _loop105; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine());}
  				}
  				}
  				_cnt105++;
  			} while (true);
  			}
  			break;
  		}
  		case '"':
  		{
  			_saveIndex=text.length();
  			match('"');
  			text.setLength(_saveIndex);
  			{
  			int _cnt107=0;
  			_loop107:
  			do {
  				switch ( LA(1)) {
  				case '.':  case '/':  case '0':  case '1':
  				case '2':  case '3':  case '4':  case '5':
  				case '6':  case '7':  case '8':  case '9':
  				case ':':  case 'A':  case 'B':  case 'C':
  				case 'D':  case 'E':  case 'F':  case 'G':
  				case 'H':  case 'I':  case 'J':  case 'K':
  				case 'L':  case 'M':  case 'N':  case 'O':
  				case 'P':  case 'Q':  case 'R':  case 'S':
  				case 'T':  case 'U':  case 'V':  case 'W':
  				case 'X':  case 'Y':  case 'Z':  case 'a':
  				case 'b':  case 'c':  case 'd':  case 'e':
  				case 'f':  case 'g':  case 'h':  case 'i':
  				case 'j':  case 'k':  case 'l':  case 'm':
  				case 'n':  case 'o':  case 'p':  case 'q':
  				case 'r':  case 's':  case 't':  case 'u':
  				case 'v':  case 'w':  case 'x':  case 'y':
  				case 'z':
  				{
  					mCHARS(false);
  					break;
  				}
  				case ' ':
  				{
  					match(' ');
  					break;
  				}
  				case '-':
  				{
  					match('-');
  					break;
  				}
  				default:
  				{
  					if ( _cnt107>=1 ) { break _loop107; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine());}
  				}
  				}
  				_cnt107++;
  			} while (true);
  			}
  			_saveIndex=text.length();
  			match('"');
  			text.setLength(_saveIndex);
  			break;
  		}
  		default:
  		{
  			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine());
  		}
  		}
  		if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
  			_token = makeToken(_ttype);
  			_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  		}
  		_returnToken = _token;
  	}
  	
  	public final void mQNAME(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  		int _ttype; Token _token=null; int _begin=text.length();
  		_ttype = QNAME;
  		int _saveIndex;
  		
  		match('<');
  		mSTRING(false);
  		match(" xmlns=\"");
  		mSTRING(false);
  		match("\">");
  		if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
  			_token = makeToken(_ttype);
  			_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  		}
  		_returnToken = _token;
  	}
  	
  	protected final void mALPHANUM(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  		int _ttype; Token _token=null; int _begin=text.length();
  		_ttype = ALPHANUM;
  		int _saveIndex;
  		
  		switch ( LA(1)) {
  		case 'A':  case 'B':  case 'C':  case 'D':
  		case 'E':  case 'F':  case 'G':  case 'H':
  		case 'I':  case 'J':  case 'K':  case 'L':
  		case 'M':  case 'N':  case 'O':  case 'P':
  		case 'Q':  case 'R':  case 'S':  case 'T':
  		case 'U':  case 'V':  case 'W':  case 'X':
  		case 'Y':  case 'Z':  case 'a':  case 'b':
  		case 'c':  case 'd':  case 'e':  case 'f':
  		case 'g':  case 'h':  case 'i':  case 'j':
  		case 'k':  case 'l':  case 'm':  case 'n':
  		case 'o':  case 'p':  case 'q':  case 'r':
  		case 's':  case 't':  case 'u':  case 'v':
  		case 'w':  case 'x':  case 'y':  case 'z':
  		{
  			mALPHA(false);
  			break;
  		}
  		case '0':  case '1':  case '2':  case '3':
  		case '4':  case '5':  case '6':  case '7':
  		case '8':  case '9':
  		{
  			mDIGIT(false);
  			break;
  		}
  		default:
  		{
  			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine());
  		}
  		}
  		if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
  			_token = makeToken(_ttype);
  			_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  		}
  		_returnToken = _token;
  	}
  	
  	protected final void mALPHA(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  		int _ttype; Token _token=null; int _begin=text.length();
  		_ttype = ALPHA;
  		int _saveIndex;
  		
  		switch ( LA(1)) {
  		case 'a':  case 'b':  case 'c':  case 'd':
  		case 'e':  case 'f':  case 'g':  case 'h':
  		case 'i':  case 'j':  case 'k':  case 'l':
  		case 'm':  case 'n':  case 'o':  case 'p':
  		case 'q':  case 'r':  case 's':  case 't':
  		case 'u':  case 'v':  case 'w':  case 'x':
  		case 'y':  case 'z':
  		{
  			mLOWALPHA(false);
  			break;
  		}
  		case 'A':  case 'B':  case 'C':  case 'D':
  		case 'E':  case 'F':  case 'G':  case 'H':
  		case 'I':  case 'J':  case 'K':  case 'L':
  		case 'M':  case 'N':  case 'O':  case 'P':
  		case 'Q':  case 'R':  case 'S':  case 'T':
  		case 'U':  case 'V':  case 'W':  case 'X':
  		case 'Y':  case 'Z':
  		{
  			mUPALPHA(false);
  			break;
  		}
  		default:
  		{
  			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine());
  		}
  		}
  		if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
  			_token = makeToken(_ttype);
  			_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  		}
  		_returnToken = _token;
  	}
  	
  	protected final void mDIGIT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  		int _ttype; Token _token=null; int _begin=text.length();
  		_ttype = DIGIT;
  		int _saveIndex;
  		
  		matchRange('0','9');
  		if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
  			_token = makeToken(_ttype);
  			_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  		}
  		_returnToken = _token;
  	}
  	
  	protected final void mLOWALPHA(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  		int _ttype; Token _token=null; int _begin=text.length();
  		_ttype = LOWALPHA;
  		int _saveIndex;
  		
  		matchRange('a','z');
  		if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
  			_token = makeToken(_ttype);
  			_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  		}
  		_returnToken = _token;
  	}
  	
  	protected final void mUPALPHA(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  		int _ttype; Token _token=null; int _begin=text.length();
  		_ttype = UPALPHA;
  		int _saveIndex;
  		
  		matchRange('A','Z');
  		if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
  			_token = makeToken(_ttype);
  			_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  		}
  		_returnToken = _token;
  	}
  	
  	public final void mQUESTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
  		int _ttype; Token _token=null; int _begin=text.length();
  		_ttype = QUESTION;
  		int _saveIndex;
  		
  		match('?');
  		if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
  			_token = makeToken(_ttype);
  			_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
  		}
  		_returnToken = _token;
  	}
  	
  	
  	private static final long _tokenSet_0_data_[] = { 576390383559245824L, 576460743847706622L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L };
  	public static final BitSet _tokenSet_0 = new BitSet(_tokenSet_0_data_);
  	
  	}
  
  
  
  1.1                  jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/ClientParser.java
  
  Index: ClientParser.java
  ===================================================================
  // $ANTLR 2.7.1: "Client.g" -> "ClientParser.java"$
  
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/ClientParser.java,v 1.1 2002/11/24 18:37:35 jericho Exp $
   * $Revision: 1.1 $
   * $Date: 2002/11/24 18:37:35 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Slide", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  package org.apache.webdav.cmd;
  
  import java.io.*;
  import java.util.*;
  import org.apache.util.QName;
  import org.apache.webdav.lib.PropertyName;
  
  
  import antlr.TokenBuffer;
  import antlr.TokenStreamException;
  import antlr.TokenStreamIOException;
  import antlr.ANTLRException;
  import antlr.LLkParser;
  import antlr.Token;
  import antlr.TokenStream;
  import antlr.RecognitionException;
  import antlr.NoViableAltException;
  import antlr.MismatchedTokenException;
  import antlr.SemanticException;
  import antlr.ParserSharedInputState;
  import antlr.collections.impl.BitSet;
  import antlr.collections.AST;
  import antlr.ASTPair;
  import antlr.collections.impl.ASTArray;
  
  /**
   * The Slide WebDAV client parser.
   *
   * @version     $Revision: 1.1 $ $Date: 2002/11/24 18:37:35 $
   * @author      Dirk Verbeeck 
   */
  public class ClientParser extends antlr.LLkParser
         implements SlideTokenTypes
   {
  
  
      // ------------------------------------------------------------- properties
  
      /**
       * The Slide WebDAV client.
       */
      protected Client client;
      
      // --------------------------------------------------------- helper methods
  
      /**
       * Set a client.
       *
       * @param client a client
       */
      void setClient(Client client) {
          this.client = client;
      }
  
  
      /**
       * Get the text from a token.
       *
       * @param token a token
       * @return the token string
       */
      private String text(Token token) {
          return (token != null) ? token.getText() : null;
      }
      
  
      /**
       * Get the qualified name from a token.
       *
       * @param token a token
       * @return the qualified name
       */
      private QName qname(Token token) {
          if (token == null) return null;
  
          String tmp = token.getText();
          if (!tmp.startsWith("<")) {
              return new PropertyName("DAV:", text(token));
          }
          String namespaceURI = tmp.substring(tmp.indexOf('"') + 1,
                  tmp.lastIndexOf('"'));
          String localName = tmp.substring(1, tmp.indexOf(' '));
          
          return new QName(namespaceURI, localName);
      }
  
      
      /**
       * Get the property name from a token.
       *
       * @param token a token
       * @return the property name
       */
      private PropertyName pname(Token token) {
          if (token == null) return null;
  
          String tmp = token.getText();
          if (!tmp.startsWith("<")) {
              return new PropertyName("DAV:", text(token));
          }
  
          String namespaceURI = tmp.substring(tmp.indexOf('"') + 1,
                  tmp.lastIndexOf('"'));
          String localName = tmp.substring(1, tmp.indexOf(' '));
          
          return new PropertyName(namespaceURI, localName);
      }
  
      
      /**
       * Print the usage for a given command.
       *
       * @param command a command
       */
      private void printUsage(String command)
          throws RecognitionException, TokenStreamException {
  
          client.printUsage(command);
          skip(); // skip the rest of the line
      }
  
  
  protected ClientParser(TokenBuffer tokenBuf, int k) {
    super(tokenBuf,k);
    tokenNames = _tokenNames;
  }
  
  public ClientParser(TokenBuffer tokenBuf) {
    this(tokenBuf,2);
  }
  
  protected ClientParser(TokenStream lexer, int k) {
    super(lexer,k);
    tokenNames = _tokenNames;
  }
  
  public ClientParser(TokenStream lexer) {
    this(lexer,2);
  }
  
  public ClientParser(ParserSharedInputState state) {
    super(state,2);
    tokenNames = _tokenNames;
  }
  
  	public final void commands() throws RecognitionException, TokenStreamException {
  		
  		
  		
  		client.prompt();
  		
  		{
  		int _cnt3=0;
  		_loop3:
  		do {
  			if ((_tokenSet_0.member(LA(1)))) {
  				command();
  				
  				client.prompt();
  				
  			}
  			else {
  				if ( _cnt3>=1 ) { break _loop3; } else {throw new NoViableAltException(LT(1), getFilename());}
  			}
  			
  			_cnt3++;
  		} while (true);
  		}
  	}
  	
  	public final void command() throws RecognitionException, TokenStreamException {
  		
  		
  		switch ( LA(1)) {
  		case EXIT:
  		case QUIT:
  		case BYE:
  		{
  			exit();
  			break;
  		}
  		case HELP:
  		case QUESTION:
  		{
  			help();
  			break;
  		}
  		case STRING:
  		{
  			invalid();
  			break;
  		}
  		case EOL:
  		{
  			nothing();
  			break;
  		}
  		case SPOOL:
  		{
  			spool();
  			break;
  		}
  		case RUN:
  		{
  			run();
  			break;
  		}
  		case ECHO:
  		{
  			echo();
  			break;
  		}
  		case DEBUG:
  		{
  			debug();
  			break;
  		}
  		case STATUS:
  		{
  			status();
  			break;
  		}
  		case OPTIONS:
  		{
  			optionsmethod();
  			break;
  		}
  		case CONNECT:
  		case OPEN:
  		{
  			connect();
  			break;
  		}
  		case DISCONNECT:
  		{
  			disconnect();
  			break;
  		}
  		case LPWD:
  		{
  			lpwd();
  			break;
  		}
  		case LCD:
  		{
  			lcd();
  			break;
  		}
  		case LLS:
  		case LDIR:
  		{
  			lls();
  			break;
  		}
  		case PWC:
  		case PWD:
  		{
  			pwc();
  			break;
  		}
  		case CD:
  		case CC:
  		{
  			cd();
  			break;
  		}
  		case LS:
  		case DIR:
  		{
  			ls();
  			break;
  		}
  		case MKCOL:
  		case MKDIR:
  		{
  			mkcol();
  			break;
  		}
  		case MOVE:
  		{
  			move();
  			break;
  		}
  		case COPY:
  		{
  			copy();
  			break;
  		}
  		case DELETE:
  		case DEL:
  		case RM:
  		{
  			delete();
  			break;
  		}
  		case GET:
  		{
  			get();
  			break;
  		}
  		case PUT:
  		{
  			put();
  			break;
  		}
  		case PROPFIND:
  		case PROPGET:
  		{
  			propfind();
  			break;
  		}
  		case PROPFINDALL:
  		case PROPGETALL:
  		{
  			propfindall();
  			break;
  		}
  		case PROPPATCH:
  		case PROPSET:
  		{
  			proppatch();
  			break;
  		}
  		case LOCK:
  		{
  			lock();
  			break;
  		}
  		case UNLOCK:
  		{
  			unlock();
  			break;
  		}
  		case LOCKS:
  		{
  			locks();
  			break;
  		}
  		case GRANT:
  		{
  			grant();
  			break;
  		}
  		case DENY:
  		{
  			deny();
  			break;
  		}
  		case REVOKE:
  		{
  			revoke();
  			break;
  		}
  		case ACL:
  		{
  			acl();
  			break;
  		}
  		case PRINCIPALCOLLECTIONSET:
  		{
  			principalcollectionset();
  			break;
  		}
  		case VERSIONCONTROL:
  		{
  			versioncontrol();
  			break;
  		}
  		case REPORT:
  		{
  			report();
  			break;
  		}
  		case EREPORT:
  		{
  			ereport();
  			break;
  		}
  		case LREPORT:
  		{
  			lreport();
  			break;
  		}
  		case MKWS:
  		{
  			mkws();
  			break;
  		}
  		case CHECKIN:
  		{
  			checkin();
  			break;
  		}
  		case CHECKOUT:
  		{
  			checkout();
  			break;
  		}
  		case UNCHECKOUT:
  		{
  			uncheckout();
  			break;
  		}
  		case UPDATE:
  		{
  			update();
  			break;
  		}
  		default:
  		{
  			throw new NoViableAltException(LT(1), getFilename());
  		}
  		}
  	}
  	
  	public final void exit() throws RecognitionException, TokenStreamException {
  		
  		
  		{
  		switch ( LA(1)) {
  		case EXIT:
  		{
  			match(EXIT);
  			break;
  		}
  		case QUIT:
  		{
  			match(QUIT);
  			break;
  		}
  		case BYE:
  		{
  			match(BYE);
  			break;
  		}
  		default:
  		{
  			throw new NoViableAltException(LT(1), getFilename());
  		}
  		}
  		}
  		match(EOL);
  		
  		throw new TokenStreamException("exit");
  		
  	}
  	
  	public final void help() throws RecognitionException, TokenStreamException {
  		
  		
  		try {      // for error handling
  			{
  			switch ( LA(1)) {
  			case HELP:
  			{
  				match(HELP);
  				break;
  			}
  			case QUESTION:
  			{
  				match(QUESTION);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.help(null);
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("help");
  			
  		}
  	}
  	
  	public final void invalid() throws RecognitionException, TokenStreamException {
  		
  		Token  cmd = null;
  		
  		cmd = LT(1);
  		match(STRING);
  		{
  		_loop91:
  		do {
  			if ((LA(1)==STRING)) {
  				match(STRING);
  			}
  			else {
  				break _loop91;
  			}
  			
  		} while (true);
  		}
  		match(EOL);
  		
  		client.printInvalidCommand(text(cmd));
  		
  	}
  	
  	public final void nothing() throws RecognitionException, TokenStreamException {
  		
  		
  		match(EOL);
  	}
  	
  	public final void spool() throws RecognitionException, TokenStreamException {
  		
  		Token  file = null;
  		
  		try {      // for error handling
  			match(SPOOL);
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				file = LT(1);
  				match(STRING);
  				break;
  			}
  			case OFF:
  			{
  				match(OFF);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			if (file != null) {
  			client.enableSpoolToFile(text(file));
  			} else {
  			client.disableSpoolToFile();
  			}
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("spool");
  			
  		}
  	}
  	
  	public final void run() throws RecognitionException, TokenStreamException {
  		
  		Token  script = null;
  		
  		try {      // for error handling
  			match(RUN);
  			script = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.executeScript(text(script));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("run");
  			
  		}
  	}
  	
  	public final void echo() throws RecognitionException, TokenStreamException {
  		
  		
  		try {      // for error handling
  			match(ECHO);
  			
  			boolean isEnabled;
  			
  			{
  			switch ( LA(1)) {
  			case ON:
  			{
  				match(ON);
  				
  				isEnabled = true;
  				
  				break;
  			}
  			case OFF:
  			{
  				match(OFF);
  				
  				isEnabled = true;
  				
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.setEchoEnabled(isEnabled);
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("echo");
  			
  		}
  	}
  	
  	public final void debug() throws RecognitionException, TokenStreamException {
  		
  		
  		try {      // for error handling
  			
  			int level;
  			
  			match(DEBUG);
  			{
  			switch ( LA(1)) {
  			case ON:
  			{
  				match(ON);
  				
  				level = Client.DEBUG_ON;
  				
  				break;
  			}
  			case OFF:
  			{
  				match(OFF);
  				
  				level = Client.DEBUG_OFF;
  				
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.setDebug(level);
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("debug");
  			
  		}
  	}
  	
  	public final void status() throws RecognitionException, TokenStreamException {
  		
  		
  		try {      // for error handling
  			match(STATUS);
  			match(EOL);
  			
  			client.status();
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("status");
  			
  		}
  	}
  	
  	public final void optionsmethod() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			match(OPTIONS);
  			path = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.options(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("options");
  			
  		}
  	}
  	
  	public final void connect() throws RecognitionException, TokenStreamException {
  		
  		Token  uri = null;
  		
  		try {      // for error handling
  			{
  			switch ( LA(1)) {
  			case CONNECT:
  			{
  				match(CONNECT);
  				break;
  			}
  			case OPEN:
  			{
  				match(OPEN);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			uri = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.connect(text(uri));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("connect");
  			
  		}
  	}
  	
  	public final void disconnect() throws RecognitionException, TokenStreamException {
  		
  		
  		try {      // for error handling
  			match(DISCONNECT);
  			match(EOL);
  			
  			client.disconnect();
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("disconnect");
  			
  		}
  	}
  	
  	public final void lpwd() throws RecognitionException, TokenStreamException {
  		
  		
  		try {      // for error handling
  			match(LPWD);
  			match(EOL);
  			
  			client.lpwd();
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("lpwd");
  			
  		}
  	}
  	
  	public final void lcd() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			match(LCD);
  			path = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.lcd(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("lcd");
  			
  		}
  	}
  	
  	public final void lls() throws RecognitionException, TokenStreamException {
  		
  		Token  option = null;
  		Token  path = null;
  		
  		try {      // for error handling
  			{
  			switch ( LA(1)) {
  			case LLS:
  			{
  				match(LLS);
  				break;
  			}
  			case LDIR:
  			{
  				match(LDIR);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			{
  			switch ( LA(1)) {
  			case OPTIONSTRING:
  			{
  				option = LT(1);
  				match(OPTIONSTRING);
  				break;
  			}
  			case EOL:
  			case STRING:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				path = LT(1);
  				match(STRING);
  				break;
  			}
  			case EOL:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.lls(text(option), text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("lls");
  			
  		}
  	}
  	
  	public final void pwc() throws RecognitionException, TokenStreamException {
  		
  		
  		try {      // for error handling
  			{
  			switch ( LA(1)) {
  			case PWC:
  			{
  				match(PWC);
  				break;
  			}
  			case PWD:
  			{
  				match(PWD);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.pwc();
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("pwc");
  			
  		}
  	}
  	
  	public final void cd() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			{
  			switch ( LA(1)) {
  			case CD:
  			{
  				match(CD);
  				break;
  			}
  			case CC:
  			{
  				match(CC);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			path = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.cd(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("cd");
  			
  		}
  	}
  	
  	public final void ls() throws RecognitionException, TokenStreamException {
  		
  		Token  option = null;
  		Token  path = null;
  		
  		try {      // for error handling
  			{
  			switch ( LA(1)) {
  			case LS:
  			{
  				match(LS);
  				break;
  			}
  			case DIR:
  			{
  				match(DIR);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			{
  			switch ( LA(1)) {
  			case OPTIONSTRING:
  			{
  				option = LT(1);
  				match(OPTIONSTRING);
  				break;
  			}
  			case EOL:
  			case STRING:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				path = LT(1);
  				match(STRING);
  				break;
  			}
  			case EOL:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.ls(text(option), text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("ls");
  			
  		}
  	}
  	
  	public final void mkcol() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			{
  			switch ( LA(1)) {
  			case MKCOL:
  			{
  				match(MKCOL);
  				break;
  			}
  			case MKDIR:
  			{
  				match(MKDIR);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			path = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.mkcol(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("mkcol");
  			
  		}
  	}
  	
  	public final void move() throws RecognitionException, TokenStreamException {
  		
  		Token  source = null;
  		Token  destination = null;
  		
  		try {      // for error handling
  			match(MOVE);
  			source = LT(1);
  			match(STRING);
  			destination = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.move(text(source), text(destination));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("move");
  			
  		}
  	}
  	
  	public final void copy() throws RecognitionException, TokenStreamException {
  		
  		Token  source = null;
  		Token  destination = null;
  		
  		try {      // for error handling
  			match(COPY);
  			source = LT(1);
  			match(STRING);
  			destination = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.copy(text(source), text(destination));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("copy");
  			
  		}
  	}
  	
  	public final void delete() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			{
  			switch ( LA(1)) {
  			case DELETE:
  			{
  				match(DELETE);
  				break;
  			}
  			case DEL:
  			{
  				match(DEL);
  				break;
  			}
  			case RM:
  			{
  				match(RM);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			path = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.delete(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("delete");
  			
  		}
  	}
  	
  	public final void get() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		Token  file = null;
  		
  		try {      // for error handling
  			match(GET);
  			path = LT(1);
  			match(STRING);
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				file = LT(1);
  				match(STRING);
  				break;
  			}
  			case EOL:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.get(text(path), text(file));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("get");
  			
  		}
  	}
  	
  	public final void put() throws RecognitionException, TokenStreamException {
  		
  		Token  file = null;
  		Token  path = null;
  		
  		try {      // for error handling
  			match(PUT);
  			file = LT(1);
  			match(STRING);
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				path = LT(1);
  				match(STRING);
  				break;
  			}
  			case EOL:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.put(text(file), text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("put");
  			
  		}
  	}
  	
  	public final void propfind() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		Token  prop = null;
  		Token  nsprop = null;
  		
  		try {      // for error handling
  			{
  			switch ( LA(1)) {
  			case PROPFIND:
  			{
  				match(PROPFIND);
  				break;
  			}
  			case PROPGET:
  			{
  				match(PROPGET);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			path = LT(1);
  			match(STRING);
  			
  			Vector properties = new Vector();
  			
  			{
  			int _cnt42=0;
  			_loop42:
  			do {
  				switch ( LA(1)) {
  				case STRING:
  				{
  					prop = LT(1);
  					match(STRING);
  					
  					properties.add(pname(prop));
  					
  					break;
  				}
  				case QNAME:
  				{
  					nsprop = LT(1);
  					match(QNAME);
  					
  					properties.add(pname(nsprop));
  					
  					break;
  				}
  				default:
  				{
  					if ( _cnt42>=1 ) { break _loop42; } else {throw new NoViableAltException(LT(1), getFilename());}
  				}
  				}
  				_cnt42++;
  			} while (true);
  			}
  			match(EOL);
  			
  			client.propfind(text(path), properties);
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("propfind");
  			
  		}
  	}
  	
  	public final void propfindall() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			{
  			switch ( LA(1)) {
  			case PROPFINDALL:
  			{
  				match(PROPFINDALL);
  				break;
  			}
  			case PROPGETALL:
  			{
  				match(PROPGETALL);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				path = LT(1);
  				match(STRING);
  				break;
  			}
  			case EOL:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.propfindall(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("propfindall");
  			
  		}
  	}
  	
  	public final void proppatch() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		Token  prop = null;
  		Token  value = null;
  		
  		try {      // for error handling
  			{
  			switch ( LA(1)) {
  			case PROPPATCH:
  			{
  				match(PROPPATCH);
  				break;
  			}
  			case PROPSET:
  			{
  				match(PROPSET);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			path = LT(1);
  			match(STRING);
  			prop = LT(1);
  			match(STRING);
  			value = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.proppatch(text(path), text(prop), text(value));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("proppatch");
  			
  		}
  	}
  	
  	public final void lock() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			match(LOCK);
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				path = LT(1);
  				match(STRING);
  				break;
  			}
  			case EOL:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.lock(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("lock");
  			
  		}
  	}
  	
  	public final void unlock() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			match(UNLOCK);
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				path = LT(1);
  				match(STRING);
  				break;
  			}
  			case EOL:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.unlock(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("unlock");
  			
  		}
  	}
  	
  	public final void locks() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			match(LOCKS);
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				path = LT(1);
  				match(STRING);
  				break;
  			}
  			case EOL:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.locks(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("locks");
  			
  		}
  	}
  	
  	public final void grant() throws RecognitionException, TokenStreamException {
  		
  		Token  permission = null;
  		Token  nspermisssion = null;
  		Token  path = null;
  		Token  principal = null;
  		
  		try {      // for error handling
  			match(GRANT);
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				permission = LT(1);
  				match(STRING);
  				break;
  			}
  			case QNAME:
  			{
  				nspermisssion = LT(1);
  				match(QNAME);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			{
  			switch ( LA(1)) {
  			case ON:
  			{
  				match(ON);
  				path = LT(1);
  				match(STRING);
  				break;
  			}
  			case TO:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(TO);
  			principal = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			if (permission != null)
  			client.grant(text(permission), text(path), text(principal));
  			else
  			client.grant(qname(nspermisssion), text(path), text(principal));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			client.printUsage("grant");
  			
  		}
  	}
  	
  	public final void deny() throws RecognitionException, TokenStreamException {
  		
  		Token  permission = null;
  		Token  nspermisssion = null;
  		Token  path = null;
  		Token  principal = null;
  		
  		try {      // for error handling
  			match(DENY);
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				permission = LT(1);
  				match(STRING);
  				break;
  			}
  			case QNAME:
  			{
  				nspermisssion = LT(1);
  				match(QNAME);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			{
  			switch ( LA(1)) {
  			case ON:
  			{
  				match(ON);
  				path = LT(1);
  				match(STRING);
  				break;
  			}
  			case TO:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(TO);
  			principal = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			if (permission != null)
  			client.deny(text(permission), text(path), text(principal));
  			else
  			client.deny(qname(nspermisssion), text(path), text(principal));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			client.printUsage("deny");
  			
  		}
  	}
  	
  	public final void revoke() throws RecognitionException, TokenStreamException {
  		
  		Token  permission = null;
  		Token  nspermisssion = null;
  		Token  path = null;
  		Token  principal = null;
  		
  		try {      // for error handling
  			match(REVOKE);
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				permission = LT(1);
  				match(STRING);
  				break;
  			}
  			case QNAME:
  			{
  				nspermisssion = LT(1);
  				match(QNAME);
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			{
  			switch ( LA(1)) {
  			case ON:
  			{
  				match(ON);
  				path = LT(1);
  				match(STRING);
  				break;
  			}
  			case FROM:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(FROM);
  			principal = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			if (permission != null)
  			client.revoke(text(permission), text(path), text(principal));
  			else
  			client.revoke(qname(nspermisssion), text(path),
  			text(principal));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			client.printUsage("revoke");
  			
  		}
  	}
  	
  	public final void acl() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			match(ACL);
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				path = LT(1);
  				match(STRING);
  				break;
  			}
  			case EOL:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.acl(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("acl");
  			
  		}
  	}
  	
  	public final void principalcollectionset() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			match(PRINCIPALCOLLECTIONSET);
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				path = LT(1);
  				match(STRING);
  				break;
  			}
  			case EOL:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.principalcollectionset(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("principalcollectionset");
  			
  		}
  	}
  	
  	public final void versioncontrol() throws RecognitionException, TokenStreamException {
  		
  		Token  target = null;
  		Token  path = null;
  		
  		try {      // for error handling
  			match(VERSIONCONTROL);
  			{
  			if ((LA(1)==STRING) && (LA(2)==STRING)) {
  				target = LT(1);
  				match(STRING);
  			}
  			else if ((LA(1)==STRING) && (LA(2)==EOL)) {
  			}
  			else {
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			
  			}
  			path = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			if (target == null)
  			client.versioncontrol(text(path));
  			else
  			client.versioncontrol(text(target), text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("versioncontrol");
  			
  		}
  	}
  	
  	public final void report() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		Token  prop = null;
  		Token  nsprop = null;
  		
  		try {      // for error handling
  			match(REPORT);
  			path = LT(1);
  			match(STRING);
  			
  			Vector properties = new Vector();
  			
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				prop = LT(1);
  				match(STRING);
  				
  				properties.add(pname(prop));
  				
  				break;
  			}
  			case QNAME:
  			{
  				nsprop = LT(1);
  				match(QNAME);
  				
  				properties.add(pname(nsprop));
  				break;
  			}
  			case EOL:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.report(text(path), properties);
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("report");
  			
  		}
  	}
  	
  	public final void ereport() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		Token  filename = null;
  		
  		try {      // for error handling
  			match(EREPORT);
  			path = LT(1);
  			match(STRING);
  			{
  			switch ( LA(1)) {
  			case STRING:
  			{
  				filename = LT(1);
  				match(STRING);
  				break;
  			}
  			case EOL:
  			{
  				break;
  			}
  			default:
  			{
  				throw new NoViableAltException(LT(1), getFilename());
  			}
  			}
  			}
  			match(EOL);
  			
  			client.ereport(text(path), text(filename));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("ereport");
  			
  		}
  	}
  	
  	public final void lreport() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		Token  prop = null;
  		Token  nsprop = null;
  		Token  uri = null;
  		
  		try {      // for error handling
  			match(LREPORT);
  			path = LT(1);
  			match(STRING);
  			
  			Vector properties = new Vector();
  			
  			{
  			int _cnt83=0;
  			_loop83:
  			do {
  				switch ( LA(1)) {
  				case STRING:
  				{
  					prop = LT(1);
  					match(STRING);
  					
  					properties.add(pname(prop));
  					
  					break;
  				}
  				case QNAME:
  				{
  					nsprop = LT(1);
  					match(QNAME);
  					
  					properties.add(pname(nsprop));
  					
  					break;
  				}
  				default:
  				{
  					if ( _cnt83>=1 ) { break _loop83; } else {throw new NoViableAltException(LT(1), getFilename());}
  				}
  				}
  				_cnt83++;
  			} while (true);
  			}
  			match(ON);
  			
  			Vector historyUris = new Vector();
  			
  			{
  			int _cnt85=0;
  			_loop85:
  			do {
  				if ((LA(1)==STRING)) {
  					uri = LT(1);
  					match(STRING);
  					
  					historyUris.add(text(uri));
  					
  				}
  				else {
  					if ( _cnt85>=1 ) { break _loop85; } else {throw new NoViableAltException(LT(1), getFilename());}
  				}
  				
  				_cnt85++;
  			} while (true);
  			}
  			match(EOL);
  			
  			client.lreport(text(path), properties, historyUris);
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("lreport");
  			
  		}
  	}
  	
  	public final void mkws() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			match(MKWS);
  			path = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.mkws(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("mkws");
  			
  		}
  	}
  	
  	public final void checkin() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			match(CHECKIN);
  			path = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.checkin(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("checkin");
  			
  		}
  	}
  	
  	public final void checkout() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			match(CHECKOUT);
  			path = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.checkout(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("checkout");
  			
  		}
  	}
  	
  	public final void uncheckout() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		
  		try {      // for error handling
  			match(UNCHECKOUT);
  			path = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.uncheckout(text(path));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("uncheckout");
  			
  		}
  	}
  	
  	public final void update() throws RecognitionException, TokenStreamException {
  		
  		Token  path = null;
  		Token  target = null;
  		
  		try {      // for error handling
  			match(UPDATE);
  			path = LT(1);
  			match(STRING);
  			target = LT(1);
  			match(STRING);
  			match(EOL);
  			
  			client.update(text(path), text(target));
  			
  		}
  		catch (RecognitionException ex) {
  			
  			printUsage("update <path> <historyURL>");
  			
  		}
  	}
  	
  	public final void skip() throws RecognitionException, TokenStreamException {
  		
  		
  		{
  		_loop95:
  		do {
  			switch ( LA(1)) {
  			case STRING:
  			{
  				match(STRING);
  				break;
  			}
  			case HELP:
  			case QUESTION:
  			case STATUS:
  			case SPOOL:
  			case OFF:
  			case RUN:
  			case ECHO:
  			case ON:
  			case DEBUG:
  			case OPTIONS:
  			case CONNECT:
  			case OPEN:
  			case DISCONNECT:
  			case LPWD:
  			case PWC:
  			case PWD:
  			case LCD:
  			case CD:
  			case CC:
  			case LLS:
  			case LDIR:
  			case LS:
  			case DIR:
  			case MKCOL:
  			case MKDIR:
  			case MOVE:
  			case COPY:
  			case DELETE:
  			case DEL:
  			case RM:
  			case PROPFIND:
  			case PROPGET:
  			case PROPFINDALL:
  			case PROPGETALL:
  			case PROPPATCH:
  			case GET:
  			case PUT:
  			case LOCK:
  			case UNLOCK:
  			case LOCKS:
  			case GRANT:
  			case TO:
  			case DENY:
  			case REVOKE:
  			case FROM:
  			case ACL:
  			case PRINCIPALCOLLECTIONSET:
  			case VERSIONCONTROL:
  			case UPDATE:
  			case CHECKIN:
  			case CHECKOUT:
  			case UNCHECKOUT:
  			case REPORT:
  			case EREPORT:
  			case LREPORT:
  			case MKWS:
  			case EXIT:
  			case QUIT:
  			case BYE:
  			case SET:
  			case CLOSE:
  			case CP:
  			case MV:
  			case PROPPUT:
  			case PRINCIPALCOL:
  			{
  				all_tokens();
  				break;
  			}
  			default:
  			{
  				break _loop95;
  			}
  			}
  		} while (true);
  		}
  		match(EOL);
  		/* skip all */
  	}
  	
  	public final void all_tokens() throws RecognitionException, TokenStreamException {
  		
  		
  		switch ( LA(1)) {
  		case EXIT:
  		{
  			match(EXIT);
  			break;
  		}
  		case QUIT:
  		{
  			match(QUIT);
  			break;
  		}
  		case BYE:
  		{
  			match(BYE);
  			break;
  		}
  		case HELP:
  		{
  			match(HELP);
  			break;
  		}
  		case QUESTION:
  		{
  			match(QUESTION);
  			break;
  		}
  		case RUN:
  		{
  			match(RUN);
  			break;
  		}
  		case SPOOL:
  		{
  			match(SPOOL);
  			break;
  		}
  		case STATUS:
  		{
  			match(STATUS);
  			break;
  		}
  		case ECHO:
  		{
  			match(ECHO);
  			break;
  		}
  		case ON:
  		{
  			match(ON);
  			break;
  		}
  		case OFF:
  		{
  			match(OFF);
  			break;
  		}
  		case SET:
  		{
  			match(SET);
  			break;
  		}
  		case DEBUG:
  		{
  			match(DEBUG);
  			break;
  		}
  		case OPTIONS:
  		{
  			match(OPTIONS);
  			break;
  		}
  		case OPEN:
  		{
  			match(OPEN);
  			break;
  		}
  		case CONNECT:
  		{
  			match(CONNECT);
  			break;
  		}
  		case CLOSE:
  		{
  			match(CLOSE);
  			break;
  		}
  		case DISCONNECT:
  		{
  			match(DISCONNECT);
  			break;
  		}
  		case LPWD:
  		{
  			match(LPWD);
  			break;
  		}
  		case LCD:
  		{
  			match(LCD);
  			break;
  		}
  		case LLS:
  		{
  			match(LLS);
  			break;
  		}
  		case LDIR:
  		{
  			match(LDIR);
  			break;
  		}
  		case PWC:
  		{
  			match(PWC);
  			break;
  		}
  		case PWD:
  		{
  			match(PWD);
  			break;
  		}
  		case CC:
  		{
  			match(CC);
  			break;
  		}
  		case CD:
  		{
  			match(CD);
  			break;
  		}
  		case LS:
  		{
  			match(LS);
  			break;
  		}
  		case DIR:
  		{
  			match(DIR);
  			break;
  		}
  		case GET:
  		{
  			match(GET);
  			break;
  		}
  		case PUT:
  		{
  			match(PUT);
  			break;
  		}
  		case MKCOL:
  		{
  			match(MKCOL);
  			break;
  		}
  		case MKDIR:
  		{
  			match(MKDIR);
  			break;
  		}
  		case DELETE:
  		{
  			match(DELETE);
  			break;
  		}
  		case DEL:
  		{
  			match(DEL);
  			break;
  		}
  		case RM:
  		{
  			match(RM);
  			break;
  		}
  		case COPY:
  		{
  			match(COPY);
  			break;
  		}
  		case CP:
  		{
  			match(CP);
  			break;
  		}
  		case MOVE:
  		{
  			match(MOVE);
  			break;
  		}
  		case MV:
  		{
  			match(MV);
  			break;
  		}
  		case LOCK:
  		{
  			match(LOCK);
  			break;
  		}
  		case UNLOCK:
  		{
  			match(UNLOCK);
  			break;
  		}
  		case LOCKS:
  		{
  			match(LOCKS);
  			break;
  		}
  		case PROPGET:
  		{
  			match(PROPGET);
  			break;
  		}
  		case PROPFIND:
  		{
  			match(PROPFIND);
  			break;
  		}
  		case PROPGETALL:
  		{
  			match(PROPGETALL);
  			break;
  		}
  		case PROPFINDALL:
  		{
  			match(PROPFINDALL);
  			break;
  		}
  		case PROPPUT:
  		{
  			match(PROPPUT);
  			break;
  		}
  		case PROPPATCH:
  		{
  			match(PROPPATCH);
  			break;
  		}
  		case ACL:
  		{
  			match(ACL);
  			break;
  		}
  		case PRINCIPALCOL:
  		{
  			match(PRINCIPALCOL);
  			break;
  		}
  		case GRANT:
  		{
  			match(GRANT);
  			break;
  		}
  		case DENY:
  		{
  			match(DENY);
  			break;
  		}
  		case REVOKE:
  		{
  			match(REVOKE);
  			break;
  		}
  		case TO:
  		{
  			match(TO);
  			break;
  		}
  		case FROM:
  		{
  			match(FROM);
  			break;
  		}
  		case PRINCIPALCOLLECTIONSET:
  		{
  			match(PRINCIPALCOLLECTIONSET);
  			break;
  		}
  		case VERSIONCONTROL:
  		{
  			match(VERSIONCONTROL);
  			break;
  		}
  		case REPORT:
  		{
  			match(REPORT);
  			break;
  		}
  		case EREPORT:
  		{
  			match(EREPORT);
  			break;
  		}
  		case LREPORT:
  		{
  			match(LREPORT);
  			break;
  		}
  		case MKWS:
  		{
  			match(MKWS);
  			break;
  		}
  		case CHECKIN:
  		{
  			match(CHECKIN);
  			break;
  		}
  		case CHECKOUT:
  		{
  			match(CHECKOUT);
  			break;
  		}
  		case UNCHECKOUT:
  		{
  			match(UNCHECKOUT);
  			break;
  		}
  		case UPDATE:
  		{
  			match(UPDATE);
  			break;
  		}
  		default:
  		{
  			throw new NoViableAltException(LT(1), getFilename());
  		}
  		}
  	}
  	
  	
  	public static final String[] _tokenNames = {
  		"<0>",
  		"EOF",
  		"<2>",
  		"NULL_TREE_LOOKAHEAD",
  		"\"help\"",
  		"QUESTION",
  		"EOL",
  		"\"status\"",
  		"\"spool\"",
  		"STRING",
  		"\"off\"",
  		"\"run\"",
  		"\"echo\"",
  		"\"on\"",
  		"\"debug\"",
  		"\"options\"",
  		"\"connect\"",
  		"\"open\"",
  		"\"disconnect\"",
  		"\"lpwd\"",
  		"\"pwc\"",
  		"\"pwd\"",
  		"\"lcd\"",
  		"\"cd\"",
  		"\"cc\"",
  		"\"lls\"",
  		"\"ldir\"",
  		"OPTIONSTRING",
  		"\"ls\"",
  		"\"dir\"",
  		"\"mkcol\"",
  		"\"mkdir\"",
  		"\"move\"",
  		"\"copy\"",
  		"\"delete\"",
  		"\"del\"",
  		"\"rm\"",
  		"\"propfind\"",
  		"\"propget\"",
  		"QNAME",
  		"\"propfindall\"",
  		"\"propgetall\"",
  		"\"proppatch\"",
  		"PROPSET",
  		"\"get\"",
  		"\"put\"",
  		"\"lock\"",
  		"\"unlock\"",
  		"\"locks\"",
  		"\"grant\"",
  		"\"to\"",
  		"\"deny\"",
  		"\"revoke\"",
  		"\"from\"",
  		"\"acl\"",
  		"\"principalcollectionset\"",
  		"\"versioncontrol\"",
  		"\"update\"",
  		"\"checkin\"",
  		"\"checkout\"",
  		"\"uncheckout\"",
  		"\"report\"",
  		"\"ereport\"",
  		"\"lreport\"",
  		"\"mkws\"",
  		"\"exit\"",
  		"\"quit\"",
  		"\"bye\"",
  		"\"set\"",
  		"\"close\"",
  		"\"cp\"",
  		"\"mv\"",
  		"\"propput\"",
  		"\"principalcol\"",
  		"WS",
  		"CHARS",
  		"ALPHANUM",
  		"ALPHA",
  		"LOWALPHA",
  		"UPALPHA",
  		"DIGIT"
  	};
  	
  	private static final long _tokenSet_0_data_[] = { -10133649051624464L, 15L, 0L, 0L };
  	public static final BitSet _tokenSet_0 = new BitSet(_tokenSet_0_data_);
  	
  	}
  
  
  
  1.1                  jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/SlideTokenTypes.java
  
  Index: SlideTokenTypes.java
  ===================================================================
  // $ANTLR 2.7.1: "Client.g" -> "ClientLexer.java"$
  
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/SlideTokenTypes.java,v 1.1 2002/11/24 18:37:35 jericho Exp $
   * $Revision: 1.1 $
   * $Date: 2002/11/24 18:37:35 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Slide", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  package org.apache.webdav.cmd;
  
  import java.io.*;
  import java.util.*;
  import org.apache.util.QName;
  import org.apache.webdav.lib.PropertyName;
  
  
  public interface SlideTokenTypes {
  	int EOF = 1;
  	int NULL_TREE_LOOKAHEAD = 3;
  	int HELP = 4;
  	int QUESTION = 5;
  	int EOL = 6;
  	int STATUS = 7;
  	int SPOOL = 8;
  	int STRING = 9;
  	int OFF = 10;
  	int RUN = 11;
  	int ECHO = 12;
  	int ON = 13;
  	int DEBUG = 14;
  	int OPTIONS = 15;
  	int CONNECT = 16;
  	int OPEN = 17;
  	int DISCONNECT = 18;
  	int LPWD = 19;
  	int PWC = 20;
  	int PWD = 21;
  	int LCD = 22;
  	int CD = 23;
  	int CC = 24;
  	int LLS = 25;
  	int LDIR = 26;
  	int OPTIONSTRING = 27;
  	int LS = 28;
  	int DIR = 29;
  	int MKCOL = 30;
  	int MKDIR = 31;
  	int MOVE = 32;
  	int COPY = 33;
  	int DELETE = 34;
  	int DEL = 35;
  	int RM = 36;
  	int PROPFIND = 37;
  	int PROPGET = 38;
  	int QNAME = 39;
  	int PROPFINDALL = 40;
  	int PROPGETALL = 41;
  	int PROPPATCH = 42;
  	int PROPSET = 43;
  	int GET = 44;
  	int PUT = 45;
  	int LOCK = 46;
  	int UNLOCK = 47;
  	int LOCKS = 48;
  	int GRANT = 49;
  	int TO = 50;
  	int DENY = 51;
  	int REVOKE = 52;
  	int FROM = 53;
  	int ACL = 54;
  	int PRINCIPALCOLLECTIONSET = 55;
  	int VERSIONCONTROL = 56;
  	int UPDATE = 57;
  	int CHECKIN = 58;
  	int CHECKOUT = 59;
  	int UNCHECKOUT = 60;
  	int REPORT = 61;
  	int EREPORT = 62;
  	int LREPORT = 63;
  	int MKWS = 64;
  	int EXIT = 65;
  	int QUIT = 66;
  	int BYE = 67;
  	int SET = 68;
  	int CLOSE = 69;
  	int CP = 70;
  	int MV = 71;
  	int PROPPUT = 72;
  	int PRINCIPALCOL = 73;
  	int WS = 74;
  	int CHARS = 75;
  	int ALPHANUM = 76;
  	int ALPHA = 77;
  	int LOWALPHA = 78;
  	int UPALPHA = 79;
  	int DIGIT = 80;
  }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>