You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2009/08/22 16:30:29 UTC

svn commit: r806860 - /directory/shared/branches/shared-schema/ldap/src/main/antlr/schema.g

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())); } )
         |