You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2005/11/08 19:37:19 UTC
svn commit: r331860 -
/directory/shared/ldap/trunk/common/src/antlr/subtree-specification.g
Author: ersiner
Date: Tue Nov 8 10:37:07 2005
New Revision: 331860
URL: http://svn.apache.org/viewcvs?rev=331860&view=rev
Log:
Removed lots of commented out lines that I forgot from previous revision.
Modified:
directory/shared/ldap/trunk/common/src/antlr/subtree-specification.g
Modified: directory/shared/ldap/trunk/common/src/antlr/subtree-specification.g
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/antlr/subtree-specification.g?rev=331860&r1=331859&r2=331860&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/antlr/subtree-specification.g (original)
+++ directory/shared/ldap/trunk/common/src/antlr/subtree-specification.g Tue Nov 8 10:37:07 2005
@@ -449,310 +449,6 @@
}
;
-//subtreeSpecification returns [SubtreeSpecification ss]
-//{
-// log.debug( "entered subtreeSpecification()" );
-// // clear out ss and ssModifier in case something is left from the last parse
-// ss = null;
-// ssModifier = new SubtreeSpecificationModifier();
-//} :
-// LBRACKET ( SP )*
-// (
-// (
-// ss_base ss_base_follower
-// | ss_specificExclusions ss_specificExclusions_follower
-// | ss_minimum ss_minimum_follower
-// | ss_maximum ss_maximum_follower
-// | ss_specificationFilter
-// )
-// ( SP )*
-// )?
-// RBRACKET
-// {
-// ss = ssModifier.getSubtreeSpecification();
-// }
-// ;
-//
-//
-//ss_base_follower
-// :
-// ( SEP ( SP )*
-// (
-// ss_specificExclusions ss_specificExclusions_follower
-// | ss_minimum ss_minimum_follower
-// | ss_maximum ss_maximum_follower
-// | ss_specificationFilter
-// )
-// )?
-// ;
-//
-//
-//ss_specificExclusions_follower
-// :
-// ( SEP ( SP )*
-// (
-// ss_minimum ss_minimum_follower
-// | ss_maximum ss_maximum_follower
-// | ss_specificationFilter
-// )
-// )?
-// ;
-//
-//
-//ss_minimum_follower
-// :
-// ( SEP ( SP )*
-// (
-// ss_maximum ss_maximum_follower
-// | ss_specificationFilter
-// )
-// )?
-// ;
-//
-//
-//ss_maximum_follower
-// :
-// ( SEP ( SP )*
-// (
-// ss_specificationFilter
-// )
-// )?
-// ;
-//
-//
-//ss_base
-//{
-// log.debug( "entered ss_base()" );
-// Name base = null;
-//} :
-// "base" ( SP )+ base=localName
-// {
-// ssModifier.setBase( base );
-// }
-// ;
-//
-//
-//ss_specificExclusions
-//{
-// log.debug( "entered ss_specificExclusions()" );
-//} :
-// "specificExclusions" ( SP )+ specificExclusions
-// {
-// ssModifier.setChopBeforeExclusions( chopBeforeExclusions );
-// ssModifier.setChopAfterExclusions( chopAfterExclusions );
-// }
-// ;
-//
-//
-//specificExclusions
-//{
-// log.debug( "entered specificExclusions()" );
-//} :
-// LBRACKET
-// ( ( SP )* specificExclusion
-// ( SEP ( SP )* specificExclusion )*
-// )?
-// SP RBRACKET
-// ;
-//
-//
-//specificExclusion
-//{
-// log.debug( "entered specificExclusion()" );
-//} :
-// chopBefore | chopAfter
-// ;
-//
-//
-//chopBefore
-//{
-// log.debug( "entered chopBefore()" );
-// Name chopBeforeExclusion = null;
-//} :
-// "chopBefore" COLON chopBeforeExclusion=localName
-// {
-// chopBeforeExclusions.add( chopBeforeExclusion );
-// }
-// ;
-//
-//
-//chopAfter
-//{
-// log.debug( "entered chopAfter()" );
-// Name chopAfterExclusion = null;
-//} :
-// "chopAfter" COLON chopAfterExclusion=localName
-// {
-// chopAfterExclusions.add( chopAfterExclusion );
-// }
-// ;
-//
-//
-//ss_minimum
-//{
-// log.debug( "entered ss_minimum()" );
-// int minimum = 0;
-//} :
-// "minimum" ( SP )+ minimum=baseDistance
-// {
-// ssModifier.setMinBaseDistance( minimum );
-// }
-// ;
-//
-//
-//ss_maximum
-//{
-// log.debug( "entered ss_maximum()" );
-// int maximum = 0;
-//} :
-// "maximum" ( SP )+ maximum=baseDistance
-// {
-// ssModifier.setMaxBaseDistance( maximum );
-// }
-// ;
-//
-//
-//ss_specificationFilter
-//{
-// log.debug( "entered ss_specificationFilter()" );
-// ExprNode theRefinement = null;
-//}:
-// "specificationFilter" ( SP )+ theRefinement=refinement
-// {
-// ssModifier.setRefinement( theRefinement );
-// }
-// ;
-//
-//
-//localName returns [Name name]
-//{
-// log.debug( "entered localName()" );
-// name = null;
-//} :
-// token:DQUOTEDSTRING
-// {
-// name = dnParser.parse( token.getText() );
-// }
-// ;
-// exception
-// catch [Exception e]
-// {
-// throw new RecognitionException( "dnParser failed." + e.getMessage() );
-// }
-//
-//
-//baseDistance returns [int distance]
-//{
-// log.debug( "entered baseDistance()" );
-// distance = 0;
-//} :
-// token:NUMBER
-// {
-// distance = Integer.parseInt( token.getText() );
-// }
-// ;
-//
-//
-//refinement returns [ExprNode node]
-//{
-// log.debug( "entered refinement()" );
-// node = null;
-//} :
-// node=item | node=and | node=or | node=not
-// ;
-//
-//
-//item returns [LeafNode node]
-//{
-// log.debug( "entered item()" );
-// node = null;
-// String oid = null;
-//} :
-// "item" COLON oid=objectIdentifier
-// {
-// node = new SimpleNode( "objectClass" , oid , AbstractExprNode.EQUALITY );
-// }
-// ;
-//
-//
-//objectIdentifier returns [String oid]
-//{
-// oid = null;
-//} :
-// token1:DESCR
-// {
-// oid = token1.getText();
-// }
-// |
-// token2:NUMERICOID
-// {
-// oid = token2.getText();
-// }
-// ;
-//
-//
-//and returns [BranchNode node]
-//{
-// log.debug( "entered and()" );
-// node = null;
-// ArrayList children = null;
-//} :
-// "and" COLON children=refinements
-// {
-// node = new BranchNode( AbstractExprNode.AND , children );
-// }
-// ;
-//
-//
-//or returns [BranchNode node]
-//{
-// log.debug( "entered or()" );
-// node = null;
-// ArrayList children = null;
-//} :
-// "or" COLON children=refinements
-// {
-// node = new BranchNode( AbstractExprNode.OR , children );
-// }
-// ;
-//
-//
-//not returns [BranchNode node]
-//{
-// log.debug( "entered not()" );
-// node = null;
-// ArrayList children = null;
-//} :
-// "not" COLON children=refinements
-// {
-// node = new BranchNode( AbstractExprNode.NOT , children );
-// }
-// ;
-//
-//
-//refinements returns [ArrayList children]
-//{
-// log.debug( "entered refinements()" );
-// children = null;
-// ExprNode child = null;
-// ArrayList tempChildren = new ArrayList();
-//} :
-// LBRACKET
-// ( SP
-// child=refinement
-// {
-// tempChildren.add( child );
-// }
-// ( SEP ( SP )* child=refinement
-// {
-// tempChildren.add( child );
-// } )*
-// )? ( SP )* RBRACKET
-// {
-// children = tempChildren;
-// }
-// ;
-
// ----------------------------------------------------------------------------
// lexer class definition