ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl6-language
perl6-language
[svn:perl6-synopsis] r13480 - doc/trunk/design/syn
by larry other posts by this author
Nov 23 2006 8:47AM messages near this date
Re: implementation for subset types | Synopsis 26
Author: larry
Date: Thu Nov 23 08:46:49 2006
New Revision: 13480

Modified:
   doc/trunk/design/syn/S02.pod

Log:
Clarification that unspace is not allowed within tokens, asked by anatoly++.


Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod	(original)
+++ doc/trunk/design/syn/S02.pod	Thu Nov 23 08:46:49 2006
@@ -12,9 +12,9 @@
 
   Maintainer: Larry Wall <larry@[...].org> 
   Date: 10 Aug 2004
-  Last Modified: 15 Nov 2006
+  Last Modified: 23 Nov 2006
   Number: 2
-  Version: 79
+  Version: 80
 
 This document summarizes Apocalypse 2, which covers small-scale
 lexical items and typological issues.  (These Synopses also contain
@@ -178,14 +178,17 @@
 
 =item *
 
-In fact, any whitespace (including comments) may be hidden by prefixing
-it with C<\> .  It does not have to end with a dot.  It's just that
+In fact, any whitespace (including comments) may be hidden from the parser by
+prefixing it with C<\> .  It does not have to end with a dot.  It's just that
 the normal use of a you-don't-see-this-space is typically to put
 a dotted postfix on the next line.  But it also lets you continue
 the line in any situation where a newline might confuse the parser,
 regardless of the currently installed parser.  (Unless, of course,
-you override the unspace rule itself...)  Although we say that the
-unspace hides the whitespace from the parser, line numbers are still
+you override the unspace rule itself...)
+
+Although we say that the unspace hides the whitespace from the parser,
+it does not hide whitespace from the lexer.  As a result, unspace is not
+allowed within a token.  Additionally, line numbers are still
 counted if the unspace contains one or more newlines.  A C<#>  following
 such a newline is always an end-of-line comment, as described above.
 Since Pod chunks count as whitespace to the language, they are also

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved