Re: `lines.contains( / \h / )` returning True for input strings not containing horizonal whitespace

2023-01-28 Thread Elizabeth Mattijsen
ut;' > False > ~$ > > So what I don't understand is how`.contains` coerces `\0` null-separated > strings to a `Str` without whitespace, but coerces `\n` newline-separated > strings to a `Str` with whitespace. Furthermore, it seems that `\0` > null-separated strings are

Re: `lines.contains( / \h / )` returning True for input strings not containing horizonal whitespace

2023-01-28 Thread William Michels via perl6-users
\02\03";' | raku -e 'lines.contains(/ "1 2" /).put;' False ~$ So what I don't understand is how`.contains` coerces `\0` null-separated strings to a `Str` without whitespace, but coerces `\n` newline-separated strings to a `Str` with whitespace. Furthermore, it seems that `\0`

Re: `lines.contains( / \h / )` returning True for input strings not containing horizonal whitespace

2023-01-26 Thread William Michels via perl6-users
ains on that Str. And: > > $ raku -e 'put "1\n2\n3"' | raku -e 'put lines.Str' > 1 2 3 > > There's your horizontal whitespace. > >

Re: `lines.contains( / \h / )` returning True for input strings not containing horizonal whitespace

2023-01-26 Thread Sean McAfee
to a Str and calls contains on that Str. And: $ raku -e 'put "1\n2\n3"' | raku -e 'put lines.Str' 1 2 3 There's your horizontal whitespace.

`lines.contains( / \h / )` returning True for input strings not containing horizonal whitespace

2023-01-26 Thread William Michels via perl6-users
Hi, I'm seeing an issue where I try to write parallel code between `slurp` and `lines`, expecting that when I feed each one-liner a string with vertical whitespace (but not horizontal whitespace), the two methods will be differentiated--since lines autochomps by default. ~$ raku -e 'put "1\

Re: Seq whitespace sensitivity? (was Re: print particular lines question)

2020-08-29 Thread William Michels via perl6-users
Dear Tobias (and Sean), I opened a Github issue: https://github.com/rakudo/rakudo/issues/3881 On Wed, Aug 26, 2020 at 12:12 PM Tobias Boege wrote: > On Wed, 26 Aug 2020, Tobias Boege wrote: > > Observe: > > > > > 1 ...^ 20 > > (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19) > > > > > 1

Re: Seq whitespace sensitivity? (was Re: print particular lines question)

2020-08-26 Thread Tobias Boege
On Wed, 26 Aug 2020, Tobias Boege wrote: > Observe: > > > 1 ...^ 20 > (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19) > > > 1 ... ^20 # actually C«1 ... (0..19)» > (1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19) > > The documentation [1] states that the C«...» infix is

Re: Seq whitespace sensitivity? (was Re: print particular lines question)

2020-08-26 Thread William Michels via perl6-users
> > > > { $++ * ($ *= -1) } ... * > > > > > > > Hi Sean, that's a neat solution! I seem to have found an oddity though > > (whitespace sensitivity). In the REPL: > > > > > say { $++ * ($ *= -1) } ...21 > > (0 1 -2 3 -4 5 -6 7 -8 9 -10

Re: Seq whitespace sensitivity? (was Re: print particular lines question)

2020-08-26 Thread Tobias Boege
wanted an infinite > > sequence like this: > > > > 0, 1, -2, 3, -4, 5, -6, ... > > > > It took me a while to realize this can be expressed in Raku simply as: > > > > { $++ * ($ *= -1) } ... * > > > > Hi Sean, that's a neat solution! I see

Seq whitespace sensitivity? (was Re: print particular lines question)

2020-08-26 Thread William Michels via perl6-users
6, ... > > It took me a while to realize this can be expressed in Raku simply as: > > { $++ * ($ *= -1) } ... * > Hi Sean, that's a neat solution! I seem to have found an oddity though (whitespace sensitivity). In the REPL: > say { $++ * ($ *= -1) } ...21 (0 1 -2 3 -4 5 -6 7

[perl #126532] [BUG] Internal error when passing whitespace through a named argument in Rakudo

2018-05-09 Thread Brian S. Julin via RT
The examples would fail usage constraints with the parameterless MAIN. I could not get them to fail with any internal messages on current rakudo, either with the parameterless MAIN or with a MAIN that had a :$y. Haven't looked as to when this got fixed. Tests added for both cases (though I had

Re: User defined infix operators and whitespace

2017-08-26 Thread Norman Gaywood
that? Or did I miss something > obvious? > > Obviously it's possible to have operators that ignore whitespace (1+1 > works just fine) but is it possibly for user defined ones? > > Possibly more serious ones. > > Simon > -- Norman Gaywood, Computer Systems Officer

Re: User defined infix operators and whitespace

2017-08-10 Thread Brock Wilcox
I think there are a couple answers. The simple one is yes -- embrace the whitespace. Maybe wrap them in ()', like (2 d 6). Another line of ideas is wrapping things with some other operators. Maybe a special quoting operator or a converter. [[2d6]] # double for dice! "2d6":dice

User defined infix operators and whitespace

2017-08-10 Thread Simon Proctor
or a prefix d 10 for a single 10 sided dice. Except... I'd really like to write 3d6 or d10 but the parser barfs. Am I going to just have to live with that? Or did I miss something obvious? Obviously it's possible to have operators that ignore whitespace (1+1 works just fine) but is it possibly for user

[perl #131382] [LTA] for, parens, and lack of whitespace (for(^700){say 2})

2017-05-27 Thread via RT
use whitespace instead of parens at -e:1 --> for⏏(^700) {say 2} Unexpected block in infix position (two terms in a row) at -e:1 --> for(^700)⏏ {say 2} However, it is not printed if you omit space everywhere.

[perl6/specs] 78c421: S05-regex.pod: clairify that trailing whitespace i...

2017-01-02 Thread GitHub
n 2017) Changed paths: M S05-regex.pod Log Message: --- S05-regex.pod: clairify that trailing whitespace is significant w/ :s

[perl #129920] [BUG] Configure.PL does not protect whitespace in --prefix

2016-10-19 Thread brian d foy
fix might end up with whitespace (even if the initial value does not have it). This path is not quoted in nqp/Makefile, so that fails and the build cannot continue. I ran into this because I used a path that was a symlink: % perl Configure.pl --gen-moar --prefix /Users/brian/Dropbox/perl6s/rakudo

[perl #129316] [BUG] In given block, whitespace matters too much to parser.

2016-09-20 Thread via RT
# New Ticket Created by Larry Brasfield # Please include the string: [perl #129316] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129316 > Using Rakudo Star: ~$ perl6 -version This is Rakudo version 2016.07.1 built on MoarVM

[perl #129316] [BUG] In given block, whitespace matters too much to parser.

2016-09-20 Thread Zoffix Znet via RT
Thank you for the report, however, this is not a bug. Closing curlies ('}') end statements when they're the last non-whitespace/non-unspace character on the line, which is why your first version works. When putting them all on one line, you have to explicitly specify where the statements end

[perl #128561] [LTA] inconsistent whitespace rules re diacritics

2016-07-06 Thread via RT
# New Ticket Created by Zefram # Please include the string: [perl #128561] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128561 > Does a space-with-diacritic grapheme count as whitespace, for the purposes of the Per

[perl6/specs] 94357c: Typos, markup corrections, trailing whitespace

2015-12-29 Thread GitHub
-12-29 (Tue, 29 Dec 2015) Changed paths: M S99-glossary.pod Log Message: --- Typos, markup corrections, trailing whitespace

[perl #120895] heredocs get tabs removed when asked to dedent whitespace

2015-11-12 Thread jn...@jnthn.net via RT
On Sat Jan 04 02:26:52 2014, masak wrote: > On Sun Dec 29 08:24:44 2013, FROGGS.de wrote: > > p: say qq:to/EOF/ ~~ /\t/;␤\thello␤EOF␤# the tab is > > preserved > > rakudo-parrot c14a84: OUTPUT«「 」␤␤» > > p: say qq:to/EOF/ ~~ /\t/;␤\thello␤EOF␤# now it is > > gone > > rakudo-parrot

[perl #125543] [BUG] De-indentation should de-indent physical lines, not whitespace following a \n escape in heredocs in Rakudo

2015-11-12 Thread jn...@jnthn.net via RT
ndentation warning at compile time.) > > my $here = qq:to/END_TEXT/; > foo\nbar > END_TEXT > > it's concerning how leading whitespace removal is handled > when one has an embedded newline via \n in a heredoc > oh, interesting > i hadn't considered newlines that are escaped ins

[perl #126532] [BUG] Internal error when passing whitespace through a named argument in Rakudo

2015-11-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126532] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126532 > Basically, any argument containing only whitespace seems to trigger this er

[perl #126219] LTA error message includes whitespace (dd . ␤ ␤ ␤ ␤ dd)

2015-09-29 Thread via RT
.pl Preceding context expects a term, but found infix . instead at ./test2.pl:5 --> dd .⏏ I don't see any reason for it to include whitespace in the error message.

[perl #125812] LTA error message when doing with() { } with no whitespace before ()

2015-08-14 Thread via RT
if: ===SORRY!=== Word 'if' interpreted as 'if()' function call; please use whitespace instead of parens at ./test.pl:2 -- if⏏(1) { } Unexpected block in infix position (two terms in a row) at ./test.pl:2 -- if(1)⏏ { } In other words, “with” and “without” should produce same error message about

[perl #125543] [BUG] De-indentation should de-indent physical lines, not whitespace following a \n escape in heredocs in Rakudo

2015-07-03 Thread Carl Mäsak
thing to do is hoelzro https://gist.github.com/hoelzro/3b1ff9951908c9ce5aa4 (Gist shows the following heredoc with a \n in it, which gives a de-indentation warning at compile time.) my $here = qq:to/END_TEXT/; foo\nbar END_TEXT hoelzro it's concerning how leading whitespace removal

[perl6/specs] 221b27: typos and whitespace fixes

2015-05-11 Thread GitHub
) Changed paths: M S99-glossary.pod Log Message: --- typos and whitespace fixes

[perl #124213] [BUG] Bizarre LTA error message when not putting in whitespace between 'is MyBase' and the opening brace '{' in class declaration in Rakudo

2015-03-31 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #124213] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/Ticket/Display.html?id=124213 Ven m: class T{}; class S is T{} camelia rakudo-moar 2b303a:

[perl6/specs] 9f20af: Fix typos and whitespace

2014-11-18 Thread GitHub
paths: M S17-concurrency.pod Log Message: --- Fix typos and whitespace

[perl6/specs] ac5860: * whitespace

2014-08-20 Thread GitHub
) Changed paths: M S99-glossary.pod Log Message: --- * whitespace * spelling * reordering some entries for clarity * grammar * fix POD-os * americanize * capitalization consistency

[perl6/specs] 2be6bf: just a tiny whitespace fix.

2014-03-10 Thread GitHub
2014) Changed paths: M S32-setting-library/Containers.pod Log Message: --- just a tiny whitespace fix.

[perl #78202] [BUG] Rakudo treats ' #' after interpolated variable as whitespace (whereas STD.pm6 doesn't)

2014-01-14 Thread Will Coleda via RT
On Tue Nov 20 11:36:45 2012, FROGGS.de wrote: looks good nowadays: FROGGS rakudo: sub Good ($time) { say Good $time #perl6. }; Good now # discovered by tylercurtis p6eval rakudo bf472b: OUTPUT«Good Instant:1353440186.178945 #perl6.␤» Test added in S02-literals/string-interpolation.t --

[perl #120895] heredocs get tabs removed when asked to dedent whitespace

2013-12-29 Thread via RT
# New Ticket Created by Tobias Leich # Please include the string: [perl #120895] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/Ticket/Display.html?id=120895 FROGGS p: say qq:to/EOF/ ~~ /\t/;␤\thello␤EOF␤# the tab is preserved camelia

[perl #120526] ss/.../.../ doesn't preserve whitespace

2013-11-12 Thread via RT
: { $_ = a\nb\tc d; ok ss/a b c d/w x y z/, 'successful substitution returns True'; # XXX This test fails. is $_, w\nx\ty z, 'ss/.../.../ preserves whitespace'; dies_ok {abc ~~ ss/a b c/ x y z/}, 'Cannot ss/// string literal'; } -- Will Coke Coleda

[perl6/specs] 7b0188: [new 17] whitespace fixes

2013-11-03 Thread GitHub
paths: M S17-concurrency-jnthn.pod Log Message: --- [new 17] whitespace fixes and close a dangling quote

[perl #119083] [BUG] infix operator with several words matches against one space between the words in Rakudo, but not against any other whitespace (as in Niecza and STD.pm6)

2013-07-30 Thread Carl Mäsak
rakudo 45e8c4: OUTPUT«42␤alive␤» masak w... wow. masak r: sub infix:is not($l, $r) { $l !== $r }; say 5 is␤not 42 camelia rakudo 45e8c4: OUTPUT«===SORRY!===␤Two terms in a row [...] masak apparently, arbitrary whitespace doesn't work too well. FROGGS r: sub infix:is not($l, $r) { $l !== $r }; say 5

[perl #119053] [BUG] a rule doesn't match whitespace after a '^' anchor with whitespace after it in Rakudo

2013-07-28 Thread Carl Mäsak
. masak S03:330 has this to say: masak Only whitespace sequences immediately following a masak matching construct (atom, quantified atom, or assertion) are eligible. masak but at least ? is an assertion, no? moritz it is moritz in the very least it's an atom :-) masak heh. * masak submits rakudobug

[perl #114692] [BUG] :i doesn't require whitespace after modifier

2012-11-14 Thread Will Coleda via RT
On Tue Oct 16 09:18:12 2012, jn...@jnthn.net wrote: On Sat Sep 01 00:30:49 2012, glitc...@myopera.com wrote: This code works when it shouldn't. It happens on Rakudo 2012.08-27-gf3d2b53. print so 'abc' ~~ /:iabc/ Fixed: $ perl6 -e say 'ABC' ~~ /:iabc/ ===SORRY!===

[perl #114692] [BUG] :i doesn't require whitespace after modifier

2012-09-01 Thread via RT
# New Ticket Created by GlitchMr # Please include the string: [perl #114692] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=114692 This code works when it shouldn't. It happens on Rakudo 2012.08-27-gf3d2b53.

Re: [perl #114692] [BUG] :i doesn't require whitespace after modifier

2012-09-01 Thread Emile State
unsubscribe On Sat, Sep 1, 2012 at 3:30 AM, GlitchMr perl6-bugs-follo...@perl.orgwrote: # New Ticket Created by GlitchMr # Please include the string: [perl #114692] # in the subject line of all future correspondence about this issue. # URL:

[perl #113808] Bug report: whitespace in grammars

2012-06-26 Thread via RT
breaks it 20:10 sirrobert even with the \s* removed 20:10 pmichaud looking 20:11 sirrobert (cleaned up the gist by replacing == with 'eq' and removed the \s* in all places. Same problem) 20:13 pmichaud ah, it's the ^ that's an issue. 20:14 pmichaud it's somewhat of a rakudobug; the whitespace

[perl #75710] [BUG] Whitespace trouble involving a sub whose name begins with 'x' in Rakudo

2011-10-10 Thread Will Coleda via RT
for invocant of class 'Perl6Sub' [...] masak pmichaud: what's that last evaluation? masak pmichaud: where does Perl6Sub enter into it? pmichaud masak: the + is acting like an infix:+ pmichaud where it ought to be a prefix:+ masak due to the same whitespace bug? pmichaud yes pmichaud I'm going

[perl #66966] [BUG] Supposedly equivalent code doesn't work the same when formatted with different whitespace

2011-09-19 Thread Will Coleda via RT
On Thu Jun 25 12:53:52 2009, matt-w wrote: As far as I'm aware, these should be, semantically, the same: role R { } class C { method a { } a := method { } but R; } and role R {}; class C { method a { }; a := method { } but R; } However, the first says: rtype not set in

[perl6/specs] f99866: fix podchecker whitespace warning

2011-09-15 Thread noreply
paths: M S02-bits.pod Log Message: --- fix podchecker whitespace warning

[perl #89606] Whitespace in operators is not disallowed

2011-05-01 Thread via RT
«120␤» JimmyZ rakudo:sub postfix: ($a) { [*] 1..$a; }; say (* )(5); #is this expected? p6eval rakudo 8533c3: OUTPUT«120␤» moritz no, I think whitespace in operators is disallowed JimmyZ rakudo:sub postfix: ($a) { [*] 1..$a; }; say (* )(5); # SBC case p6eval rakudo 8533c3: OUTPUT«120␤» JimmyZ

[perl #89610] [BUG] Rakudo erroneously allows whitespace postfix operators

2011-04-30 Thread Carl Mäsak
? p6eval rakudo 8533c3: OUTPUT«120␤» moritz no, I think whitespace in operators is disallowed JimmyZ rakudo:sub postfix: ($a) { [*] 1..$a; }; say (* )(5); # SBC case p6eval rakudo 8533c3: OUTPUT«120␤» masak JimmyZ++ # whitespace op bug * masak submits rakudobug masak rakudo: say (* )(5) p6eval rakudo

[perl #85506] [BUG] String interpolation doesn't handle '[' after whitespace after variable right in Rakudo

2011-03-06 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #85506] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=85506 masak std: my $a = 42; say $a [file] [13:05] p6eval std 4608239: OUTPUT«ok 00:01

[perl #80330] [BUG] Rakudo allows [+]@a without intervening whitespace, STD.pm6 doesn't

2010-12-06 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #80330] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=80330 jnthn rakudo: my @a; [...@a p6eval rakudo : ( no output ) jnthn rakudo: my @a; [+]

[perl #78202] [BUG] Rakudo treats ' #' after interpolated variable as whitespace (whereas STD.pm6 doesn't)

2010-10-04 Thread Carl Mäsak
by tylercurtis p6eval rakudo 7c74c0: OUTPUT«===SORRY!===␤Unable to parse blockoid, couldn't find final '}' at line 22␤» masak std: sub Good ($time) { say Good $time #perl6. }; Good now p6eval std 237d266: OUTPUT«ok 00:01 119m␤» * masak submits rakudobug masak I know what this is. it's the whitespace

[perl #75710] [BUG] Whitespace trouble involving a sub whose name begins with 'x' in Rakudo

2010-06-14 Thread Carl Mäsak
an infix:+ pmichaud where it ought to be a prefix:+ masak due to the same whitespace bug? pmichaud yes pmichaud I'm going to need to run STD on it to see how STD handles it masak so this all goes into the same ticket? pmichaud it's the same problem, just demonstrating that the problem is not strictly

Re: [perl #75668] [BUG] whitespace before ^ in rule

2010-06-14 Thread Bruce Keeler
I think whitespace before a leading/trailing ^/$ needs to be discounted. Dwimmery and elegance demand. +1

Re: [perl #75668] [BUG] whitespace before ^ in rule

2010-06-12 Thread rir
On Fri, Jun 11, 2010 at 02:16:28PM -0700, Moritz Lenz via RT wrote: On Thu Jun 10 21:11:42 2010, rir...@comcast.net wrote: I think it is a bug that these differ rule TOP { ^ tok } rule TOP {^ tok } It actually conforms the current spec. Each consecutive run of whitespace is replaced

Re: [perl #75668] [BUG] whitespace before ^ in rule

2010-06-12 Thread yary
... On Perlmonks, I have found your answers satisfying but was disappointed that we seem to be a party of two (at least there is an audience).  I feel that I could wear you out with my questions.  I like Perlmonks, but could move to another site. A good thing about perlmonks is that your

[perl #75668] [BUG] whitespace before ^ in rule

2010-06-11 Thread via RT
# New Ticket Created by rir...@comcast.net # Please include the string: [perl #75668] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75668 In commit a5467733bdab87210a4eae6d3af309a0c3041c87 I think it is a bug that

[perl #73772] [BUG] Rakudo returns the wrong thing from a quote with only whitespace in it

2010-06-06 Thread Patrick R. Michaud via RT
Now fixed in 841262f. Assigning to moritz++ for test verification to close ticket. Pm

[perl #73804] whitespace between expression and block

2010-03-25 Thread via RT
# New Ticket Created by Steven Albano # Please include the string: [perl #73804] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=73804 Hello, I was trying out some example code (release #27) when I stumbled upon what

[perl #73772] [BUG] Rakudo returns the wrong thing from a quote with only whitespace in it

2010-03-24 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #73772] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=73772 TimToady rakudo: say .elems p6eval rakudo db0f85: OUTPUT«Method 'elems' not found

[perl #70606] [BUG] Null PMC access on a regex with a final infix:| followed by whitespace in Rakudo

2009-11-18 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #70606] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=70606 masak rakudo: b ~~ /b| / p6eval rakudo 7347ec: Null PMC access in

[perl #66966] [BUG] Supposedly equivalent code doesn't work the same when formatted with different whitespace

2009-06-26 Thread via RT
# New Ticket Created by Matthew Walton # Please include the string: [perl #66966] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66966 As far as I'm aware, these should be, semantically, the same: role R { } class C

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Larry Wall
On Mon, Apr 27, 2009 at 11:04:03AM +0200, Helmut Wollmersdorfer wrote: It's not explicitly specified, if insignificant whitespace is allowed in \c[...], \x[...], etc. Std.pm allows e.g. \x[ 41 , 42 , 43 ] For convenience - especially with long charnames - it should be possible

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Mark J. Reed
On Tue, Apr 28, 2009 at 10:22 AM, Larry Wall la...@wall.org wrote: Does anyone know offhand whether the Unicode Consortium has an explicit policy against use of punctuation in a charname?  So far they only seem to use hyphen and parens, but I wonder to what extent we can depend on that...

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Patrick R. Michaud
On Tue, Apr 28, 2009 at 01:28:40PM -0400, Mark J. Reed wrote: On Tue, Apr 28, 2009 at 10:22 AM, Larry Wall la...@wall.org wrote: Does anyone know offhand whether the Unicode Consortium has an explicit policy against use of punctuation in a charname?  So far they only seem to use hyphen and

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Patrick R. Michaud
On Tue, Apr 28, 2009 at 07:22:18AM -0700, Larry Wall wrote: On Mon, Apr 27, 2009 at 11:04:03AM +0200, Helmut Wollmersdorfer wrote: Std.pm allows e.g. \x[ 41 , 42 , 43 ] For convenience - especially with long charnames - it should be possible to write \c[ SPACE,

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Mark J. Reed
On Tue, Apr 28, 2009 at 2:27 PM, Patrick R. Michaud pmich...@pobox.com wrote: According to the 5.0.0 standard, section 4.8: Unicode character names contain only uppercase Latin letters A through Z, digits, space, and hyphen-minus. So it seems the notes in parentheses are not considered part

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Patrick R. Michaud
On Tue, Apr 28, 2009 at 03:08:05PM -0400, Mark J. Reed wrote: On Tue, Apr 28, 2009 at 2:27 PM, Patrick R. Michaud pmich...@pobox.com wrote: * The Unicode character name database [2] has parens in the  name property field for many characters    000A;control;Cc;0;B;N;LINE FEED

Whitespace in \c[...], \x[...], etc.

2009-04-27 Thread Helmut Wollmersdorfer
It's not explicitly specified, if insignificant whitespace is allowed in \c[...], \x[...], etc. Std.pm allows e.g. \x[ 41 , 42 , 43 ] For convenience - especially with long charnames - it should be possible to write \c[ SPACE, # blafasel LATIN SMALL LETTER

[perl #61914] [BUG] Declarator Parser Failure if Whitespace after Opening Paren

2009-01-11 Thread Patrick R. Michaud via RT
On Fri Jan 02 12:06:57 2009, publiustemp-perl6compil...@yahoo.com wrote: However, any whitespace after the opening paren causes a parse failure: class Foo { has ($.this, $.that, ); } my Foo $foo .= new( this = 3, that = 4 ); say $foo.this; Unable

[perl #61914] [BUG] Declarator Parser Failure if Whitespace after Opening Paren

2009-01-02 Thread publiustemp-perl6compil...@yahoo.com (via RT)
($.this, $.that, ); } my Foo $foo .= new( this = 3, that = 4 ); say $foo.this; However, any whitespace after the opening paren causes a parse failure: class Foo { has ($.this, $.that, ); } my Foo $foo .= new( this = 3, that = 4 ); say $foo.this; Unable

[perl #54610] [PATCH] for 'no trailing whitespace' test

2008-05-21 Thread Ifejinelo Onyiah
# New Ticket Created by Ifejinelo Onyiah # Please include the string: [perl #54610] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=54610 The purpose of this patch is to allow parrot pass the no trailing whitespace

[perl #54610] [PATCH] for 'no trailing whitespace' test

2008-05-21 Thread James Keenan via RT
Thanks. Applied as r27734. kid51

[perl #51880] [PATCH] Remove trailing whitespace in languages/tcl/runtime/conversions.pir

2008-03-19 Thread via RT
/conversions.pir contains trailing whitespace. The attached patch removes it. -- Matt diff --git a/languages/tcl/runtime/conversions.pir b/languages/tcl/runtime/conversions.pir index 7d7b0ea..82c91b8 100644 --- a/languages/tcl/runtime/conversions.pir +++ b/languages/tcl/runtime/conversions.pir @@ -366,7 +366,7

[perl #51880] [PATCH] Remove trailing whitespace in languages/tcl/runtime/conversions.pir

2008-03-19 Thread Will Coleda via RT
On Tue Mar 18 22:34:56 2008, kraai wrote: Howdy, t/codingstd/trailing_space.t fails because languages/tcl/runtime/conversions.pir contains trailing whitespace. The attached patch removes it. Thanks, applied in r26492.

Re: Indirect objects, adverbial arguments and whitespace

2007-10-08 Thread Dr.Ruud
colon needs whitespace after but not before, and adverbial colon needs whitespace before but not after? The reason I ask is that I'm knocking up an intro to Perl 6 for C and C++ programmers. I expect some of Perl 6's whitespace rules to trip up people used to C++ (as they have me, in my

Indirect objects, adverbial arguments and whitespace

2007-10-07 Thread Markus Laker
If I've got this right: mangle $foo :a;# mangle($foo, a = 1); mangle $foo: a;# $foo.mangle(a()); So these -- mangle $foo:a; mangle $foo : a; are ambiguous and, as far as I can tell from the synopses, undefined. So what's the rule: that indirect-object colon needs whitespace after

Re: Indirect objects, adverbial arguments and whitespace

2007-10-07 Thread Mark J. Reed
Visually, I interpret :a as a token unto itself, though that's probably Ruby's fault. That interpretation would man that the dual-whitespace version would have to be an indirect object. I would argue for disallowing the all-jammed-together case, lest we run into longest-match arguments where

Re: Indirect objects, adverbial arguments and whitespace

2007-10-07 Thread Luke Palmer
if you consider the indirect object : to be part of the variable before it (I wouldn't), then you would always get the foobar: baz / foo: barbaz interpretation. I don't know about the all jammed together case, but mangle $foo : a is not ambiguous because : a is not a pair: there is no whitespace

[perl #42236] [PATCH] Codingstd/whitespace fixes (keyword one-space open-paren)

2007-03-31 Thread via RT
# New Ticket Created by Shawn M Moore # Please include the string: [perl #42236] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=42236 Hi, I'm bored, so I'm going through and fixing some failing tests in t/codingstd/

[perl #42236] [PATCH] Codingstd/whitespace fixes (keyword one-space open-paren)

2007-03-31 Thread Paul Cochrane via RT
On Fri Mar 30 23:36:45 2007, [EMAIL PROTECTED] wrote: Hi, I'm bored, so I'm going through and fixing some failing tests in t/codingstd/ At the moment I'm working on c_parens.t. Here's one that fixes the majority of the failures in the first third of the tests, which looks that code

[perl #40755] [TODO] Tcl - make 'splitchars' variable the default whitespace splitchars in runtime/builtin/split.pir

2006-11-09 Thread via RT
variable with the default whitespace splitchars. This ticket is in response to cage task #39704.

Re: a smarter form of whitespace

2006-07-06 Thread Allison Randal
Patrick R. Michaud wrote: On Tue, Jul 04, 2006 at 12:57:16PM -0700, Allison Randal wrote: -- token start { ^emptyline*$ } regex emptyline { ^^ $$ \n } token ws { [sp | \t]* } -- The above grammar doesn't have a grammar statement; as a result the regexes are being installed into

Re: a smarter form of whitespace

2006-07-06 Thread Nathan Gray
On Tue, Jul 04, 2006 at 12:57:16PM -0700, Allison Randal wrote: I'm writing a parser for a language that treats a double newline as a statement terminator. It works if I make every rule a 'regex' (to turn off smart whitespace). But I want spaces and tabs to act as smart whitespace

Re: a smarter form of whitespace

2006-07-06 Thread Patrick R. Michaud
On Thu, Jul 06, 2006 at 12:29:12AM -0700, Allison Randal wrote: $ cat xyz.pir .sub main :main load_bytecode 'PGE.pbc' load_bytecode 'ar.pir' load_bytecode 'dumper.pbc' load_bytecode 'PGE/Dumper.pbc' $P0 = find_global 'XYZ', 'start' $P1 = $P0(\n\n\n\n\n\n\n,

Re: a smarter form of whitespace

2006-07-05 Thread Allison Randal
Nathan Gray wrote: Overloading ws and other builtins was fixed in parrot and pugs approaching midnight (hackathon time) on 2006-06-29. If your parrot and pugs are both more recent than that, I'm not sure where the bug is. I have the latest checkout of Parrot (I'm not using Pugs). It may

Re: a smarter form of whitespace

2006-07-05 Thread Patrick R. Michaud
On Tue, Jul 04, 2006 at 12:57:16PM -0700, Allison Randal wrote: -- token start { ^emptyline*$ } regex emptyline { ^^ $$ \n } token ws { [sp | \t]* } -- The above grammar doesn't have a grammar statement; as a result the regexes are being installed into the '' namespace. If

a smarter form of whitespace

2006-07-04 Thread Allison Randal
I'm writing a parser for a language that treats a double newline as a statement terminator. It works if I make every rule a 'regex' (to turn off smart whitespace). But I want spaces and tabs to act as smart whitespace, and newlines to act as literal whitespace. I've overloaded ws to match only

Re: [perl #37104] [PATCH] docs - spelling, markup and whitespace fixes

2005-09-08 Thread Jonathan Worthington
Joshua Hoblitt (via RT) [EMAIL PROTECTED] wrote: @@ -95,10 +97,17 @@ =head2 PMCs + .mine +PMC stands for Parrot Magic Cookie. PMCs represent any complex data structure +or type, including aggregate data types (arrays, hash tables, etc). A PMC can +implement its own behavior for

Re: [perl #37104] [PATCH] docs - spelling, markup and whitespace fixes

2005-09-08 Thread Bernhard Schmalhofer
Jonathan Worthington schrieb: Joshua Hoblitt (via RT) [EMAIL PROTECTED] wrote: HmmmI'm thinking these lines shouldn't be there:- + .mine + .r9142 Yes, sure. I must have missed an conflict when svn had to do some merging. The svn litter is removed in r9158. CU, Bernhard

Re: [PATCH] docs - spelling, markup and whitespace fixes

2005-09-07 Thread Bernhard Schmalhofer
Joshua Hoblitt schrieb: I've tried submitting this patch to RT twice now without any success so I'm resorting to sending it directly to the mailing list. -J Hi, thanks a lot for your patch. I also think that the problem with RT were because of the size of the attachment. TNX, Bernhard

Re[2]: Whitespace

2005-08-06 Thread Andrew Shitov
: so why not 'print($x)' == 'print ($x)' ;-) Plus we got rid of Perl-5's no-op unary +, so instead we're using whitespace to force it to be a list operator. Thanks! I've got the idea. I'd better refuse parenthesis than a space here. I think I'll never drop space in a function call if it can

Re: Whitespace

2005-08-05 Thread Larry Wall
. On top of which, we think it's probably easier to retrain you than the typical newbie. :-) Plus we got rid of Perl-5's no-op unary +, so instead we're using whitespace to force it to be a list operator. But the overriding reason is that we're trying to be consistent about using whitespace

Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Andrew Shitov
I am glad to announce Pugs 6.2.9, released during Ingy's OSCON talk: http://pugscode.org/dist/Perl6-Pugs-6.2.9.tar.gz SIZE = 1439642 SHA1 = efd32419dcddba596044a42564936888a28b3c69 Following last month's plan, this release features a Perl6/PIL to javascript code generator,

Re: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Carl Franks
why do we have to give up a space when calling functions under Pugs? A need to type open('file.txt') instead of open ('file.txt') makes me perplexing (not perl-flexing ;-) Our recent discussions in 'zip with()' gave no answer. Not sure whether it's enough of an answer, but see:

Re[2]: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Andrew Shitov
why do we have to give up a space when calling functions under Pugs? Not sure whether it's enough of an answer, but see: http://dev.perl.org/perl6/doc/design/syn/S04.html#Statement_parsing it says: if $term ($x) # syntax error (two terms in a row) if this cause an error, why not

Re: Re[2]: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Carl Franks
why do we have to give up a space when calling functions under Pugs? Not sure whether it's enough of an answer, but see: http://dev.perl.org/perl6/doc/design/syn/S04.html#Statement_parsing it says: if $term ($x) # syntax error (two terms in a row) if this cause an error,

Re: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Autrijus Tang
On Thu, Aug 04, 2005 at 10:55:12AM +0400, Andrew Shitov wrote: why do we have to give up a space when calling functions under Pugs? A need to type open('file.txt') instead of open ('file.txt') makes me perplexing (not perl-flexing ;-) Our recent discussions in 'zip with()' gave no answer.

Re: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Brano Tichý
Thus spake Autrijus: This is so: print (1+2)*3; can print 9, instead of 3. Just a newbie question: what would print (1+2)x3; print (or do)? And is print .(1+2)*3 allowed? brano tichý

Re: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Carl Franks
I've just realised I quoted the wrong doc earlier, I meant to link to: http://dev.perl.org/perl6/doc/design/syn/S12.html#Methods .doit ()# ILLEGAL (two terms in a row) .doit .() # okay, no arguments, same as .doit() I had wrongly thought this also applied to subroutine calls, and

Re: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread H.Merijn Brand
On Thu, 4 Aug 2005 20:21:18 +0800, Autrijus Tang [EMAIL PROTECTED] wrote: On Thu, Aug 04, 2005 at 10:55:12AM +0400, Andrew Shitov wrote: why do we have to give up a space when calling functions under Pugs? A need to type open('file.txt') instead of open ('file.txt') makes me perplexing

Re: Whitespace

2005-08-04 Thread Andrew Shitov
print (1+2)*3; can print 9, instead of 3. I'd prefer always have '3' (as a result of sum 1 + 2) here. A C-programmer would tread this like (print (1 + 2) * 3); # prints int, then returns void print (or do)? And is print .(1+2)*3 allowed? in fact, that is exactly

  1   2   >