Author: bernhard
Date: Fri Jan 16 04:10:24 2009
New Revision: 35626

Modified:
   trunk/languages/pipp/src/pct/grammar.pg

Log:
[Pipp] Rename NAMESPACED_IDENT to name and define it line in Rakudo

Modified: trunk/languages/pipp/src/pct/grammar.pg
==============================================================================
--- trunk/languages/pipp/src/pct/grammar.pg     (original)
+++ trunk/languages/pipp/src/pct/grammar.pg     Fri Jan 16 04:10:24 2009
@@ -241,7 +241,7 @@
 #
 token CLASS_NAME               { <ident> }
 
-token CONSTANT_NAME            { <NAMESPACED_IDENT> }
+token CONSTANT_NAME            { <name> }
 
 token CLASS_CONSTANT_ACCESSOR  { '::' }
 
@@ -259,9 +259,14 @@
 
 token NAMESPACE_SEPARATOR      { '\\' }
 
-token NAMESPACE_NAME           { <.NAMESPACE_SEPARATOR>? <ident> [ 
<.NAMESPACE_SEPARATOR> <ident> ]* }
+token NAMESPACE_NAME           { <.name> }
 
-token NAMESPACED_IDENT         { <.NAMESPACE_SEPARATOR>? <ident> [ 
<.NAMESPACE_SEPARATOR> <ident> ]* }
+token name {
+    | <ident> <morename>*    # no leading backslash
+    | <morename>+            # leading backslash
+}
+
+token morename { <.NAMESPACE_SEPARATOR> <ident> }
 
 token VAR_NAME                 { '$' <ident> }
 

Reply via email to