Author: akarasulu
Date: Sat Oct 9 01:20:51 2004
New Revision: 54154
Modified:
incubator/directory/eve/trunk/backend/tools/src/antlr/openldap.g
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/schema/AttributeTypeParserTest.java
Log:
add some tracing
Modified: incubator/directory/eve/trunk/backend/tools/src/antlr/openldap.g
==============================================================================
--- incubator/directory/eve/trunk/backend/tools/src/antlr/openldap.g
(original)
+++ incubator/directory/eve/trunk/backend/tools/src/antlr/openldap.g Sat Oct
9 01:20:51 2004
@@ -292,6 +292,7 @@
superior [MutableAttributeType type]
{
+ matchedProduction( "superior()" ) ;
}
: "SUP"
(
@@ -310,6 +311,7 @@
equality [MutableAttributeType type]
{
+ matchedProduction( "equality()" ) ;
}
: "EQUALITY"
(
@@ -328,6 +330,7 @@
substr [MutableAttributeType type]
{
+ matchedProduction( "substr()" ) ;
}
: "SUBSTR"
(
@@ -346,6 +349,7 @@
ordering [MutableAttributeType type]
{
+ matchedProduction( "ordering()" ) ;
}
: "ORDERING"
(
@@ -364,6 +368,7 @@
names [MutableAttributeType type]
{
+ matchedProduction( "names()" ) ;
ArrayList list = new ArrayList();
}
:
@@ -393,6 +398,7 @@
syntax [MutableAttributeType type]
{
+ matchedProduction( "syntax()" ) ;
}
: "SYNTAX"
(
@@ -408,6 +414,7 @@
usage [MutableAttributeType type]
{
+ matchedProduction( "usage()" ) ;
}
:
"USAGE"
Modified:
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/schema/AttributeTypeParserTest.java
==============================================================================
---
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/schema/AttributeTypeParserTest.java
(original)
+++
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/schema/AttributeTypeParserTest.java
Sat Oct 9 01:20:51 2004
@@ -33,7 +33,12 @@
{
public void testParser() throws Exception
{
- String attributeTypeData = "attributetype ( 2.5.4.2 NAME
'someIdentifier' )";
+ String attributeTypeData = "attributetype ( 2.5.4.2 NAME
'knowledgeInformation'\n" +
+ //" DESC 'RFC2256: knowledge information'\n" +
+ //" EQUALITY caseIgnoreMatch\n" +
+ //" SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} )";
+
+ ")";
ByteArrayInputStream in = new ByteArrayInputStream(
attributeTypeData.getBytes() );
antlrOpenLdapSchemaLexer lexer = new antlrOpenLdapSchemaLexer( in );
antlrOpenLdapSchemaParser parser = new antlrOpenLdapSchemaParser(
lexer );