directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r806860 - /directory/shared/branches/shared-schema/ldap/src/main/antlr/schema.g
Date Sat, 22 Aug 2009 14:30:29 GMT
Author: elecharny
Date: Sat Aug 22 14:30:29 2009
New Revision: 806860

URL: http://svn.apache.org/viewvc?rev=806860&view=rev
Log:
Updated the LdapSyntax parser

Modified:
    directory/shared/branches/shared-schema/ldap/src/main/antlr/schema.g

Modified: directory/shared/branches/shared-schema/ldap/src/main/antlr/schema.g
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/antlr/schema.g?rev=806860&r1=806859&r2=806860&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/antlr/schema.g (original)
+++ directory/shared/branches/shared-schema/ldap/src/main/antlr/schema.g Sat Aug 22 14:30:29
2009
@@ -476,13 +476,13 @@
      *    extensions WSP RPAREN      ; extensions
      * </pre>
     */
-ldapSyntaxDescription returns [LdapSyntaxDescription lsd = new LdapSyntaxDescription()]
+ldapSyntaxDescription returns [LdapSyntaxDescription lsd]
     {
         matchedProduction( "ldapSyntaxDescription()" );
         ElementTracker et = new ElementTracker();
     }
     :
-    ( oid:STARTNUMERICOID { lsd.setNumericOid(numericoid(oid.getText())); } )
+    ( oid:STARTNUMERICOID { lsd = new LdapSyntaxDescription(oid.getText()); } )
     (
         ( name:NAME { et.track("NAME", name); lsd.setNames(qdescrs(name.getText())); } )
         |



Mime
View raw message