[perl #131206] “Oops!!!” when using --target=ast (^…)

2018-03-10 Thread Jan-Olof Hendig via RT
On Mon, 24 Apr 2017 15:32:33 -0700, alex.jakime...@gmail.com wrote: > Run this: > perl6 --target=ast -e '^…' > > And among normal lines from the output you will see these messages: > > Oops!!! Cannot invoke this object (REPR: P6opaque; NQPMu) > > I don'

[perl #132085] [REGRESSION] Possible regression after Match.(made|ast) changes

2017-09-13 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
Thanks! On 2017-09-13 21:02:09, lloyd.fo...@gmail.com wrote: > I think we can close this. It's most likely an internals change > because I > call nqp::setparameterizer() directly. I'll figure out what the > problem is > eventually and if I can't fix it myself I'll open a more concise RT. > > Cheer

Re: [perl #132085] [REGRESSION] Possible regression after Match.(made|ast) changes

2017-09-13 Thread Lloyd Fournier via RT
I think we can close this. It's most likely an internals change because I call nqp::setparameterizer() directly. I'll figure out what the problem is eventually and if I can't fix it myself I'll open a more concise RT. Cheers LL On Thu, Sep 14, 2017 at 1:27 PM Aleks-Daniel Jakimenko-Aleksejev < p

Re: [perl #132085] [REGRESSION] Possible regression after Match.(made|ast) changes

2017-09-13 Thread Lloyd Fournier
I think we can close this. It's most likely an internals change because I call nqp::setparameterizer() directly. I'll figure out what the problem is eventually and if I can't fix it myself I'll open a more concise RT. Cheers LL On Thu, Sep 14, 2017 at 1:27 PM Aleks-Daniel Jakimenko-Aleksejev < p

[perl #132085] [REGRESSION] Possible regression after Match.(made|ast) changes

2017-09-13 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #132085] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132085 > Spit tests are failing on HEAD (https://github.com/spitsh/spitsh). E

[perl #131552] [BUG] «||=« leads to Non ast passed to WANTED: NQPMu␤Non ast passed to WANTED: NQPMu␤Weird node in analyze

2017-06-10 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131552] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131552 > m: dd "".split("=", 2) «||=« '' rakudo-moar 8b86b5:

[perl #131206] “Oops!!!” when using --target=ast (^…)

2017-04-24 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #131206] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131206 > Run this: perl6 --target=ast -e '^…' And among norm

Re: Need some help to understand how modify an AST.

2016-12-05 Thread Moritz Lenz
> This program displays an error message and doesn't find the value of > toto environment variable. > > > The only difference between the 2 programs is instruction "make( > %*ENV{$}" is part of the TOP method in the program 1 and > part of the varenv method in program 2. > > I'm certainly missing something but I don't understand why program 2 > doesn't work. I'm very interested to get explanations for that. It will > help me to understand how to modify and AST using Perl6. > > > Thanks a lot for your help. > > Best regards, > > Jean-Pierre > > -- Moritz Lenz https://deploybook.com/ -- https://perlgeek.de/ -- https://perl6.org/

Need some help to understand how modify an AST.

2016-12-05 Thread CARAYOL Jean-Pierre
I'm certainly missing something but I don't understand why program 2 doesn't work. I'm very interested to get explanations for that. It will help me to understand how to modify and AST using Perl6. Thanks a lot for your help. Best regards, Jean-Pierre

[perl6/specs] b10af0: point out ".ast" is an alternative to ".made".

2016-02-06 Thread GitHub
-glossary.pod Log Message: --- point out ".ast" is an alternative to ".made".

[perl #126764] [BUG] --target=ast generating error or warning

2015-11-29 Thread via RT
# New Ticket Created by Justin DeVuyst # Please include the string: [perl #126764] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126764 > # error [jdv@wieldy ~]$ perl6 --target=ast -e 'module m { sub infix: {} }&

[perl #122746] [BUG] Stringification of AST parameter not captured properly in postfix macro in Rakudo

2014-10-23 Thread Christian Bartolomaeus via RT
There is a passing test in S06-macros/unquoting.t now (cmp. commits https://github.com/perl6/roast/commit/054665cfb7 and https://github.com/perl6/roast/commit/d6570538ae). I'm closing this ticket now.

[perl #122746] [BUG] Stringification of AST parameter not captured properly in postfix macro in Rakudo

2014-10-02 Thread Carl Mäsak via RT
masak (>): > m: macro postfix:($o) { quasi { die "Null check failed for > ", $o.Str unless defined {{{$o}}}; {{{$o}}} } }; say 42!!; my > $cookies; my $food = $cookies!! > 16:18 <+camelia> rakudo-moar 51ddd5: OUTPUT«42␤Null check failed for ␤ > in any [...]» > so close. > * masak submits rakudob

[perl #122746] [BUG] Stringification of AST parameter not captured properly in postfix macro in Rakudo

2014-09-10 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #122746] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=122746 > m: macro postfix:($o) { quasi { die "Null check failed for ", $o.Str unless defined {{{$

[perl6/specs] 46f8aa: WP link to AST

2014-09-08 Thread GitHub
-glossary.pod Log Message: --- WP link to AST

[perl #121533] [MoarVM] macro test failure, building an AST incrementally in a for loop

2014-03-29 Thread via RT
two backends: { # building an AST incrementally in a for loop macro podolsky() { my $q = quasi { 2 }; $q = quasi { 1 + {{{$q}}} } for ^2; $q; } is podolsky(), 4, "can build ASTs in a for loop"; } It dies at compile time with ===SORRY!=== Specified co

[perl6/specs] 379579: [S05] Reintroduce the .ast method.

2014-03-13 Thread GitHub
Log Message: --- [S05] Reintroduce the .ast method. Every good language has a few synonyms anyway :) .

[perl6/specs] 24373d: Rename .ast method to .made

2014-02-04 Thread GitHub
: M S02-bits.pod M S05-regex.pod Log Message: --- Rename .ast method to .made This makes much more sense when paired with "make". It also makes the generic examples of make that jnthn++ used in his http://jnthn.net/papers/2014-fosdem-perl6-today.pdf (slide #24 and

Re: [perl #106480] [BUGS] nom regression: perl6 targets parse, ast and past are broken or useless

2011-12-24 Thread Stéphane Payrard
6480] > # in the subject line of all future correspondence about this issue. > # https://rt.perl.org:443/rt3/Ticket/Display.html?id=106480 > > > > $ perl6 --target=parse -e 'say "hi"' > ===SORRY!=== > Could not locate compile-time value for symbol Stat

[perl #106480] [BUGS] nom regression: perl6 targets parse, ast and past are broken or useless

2011-12-18 Thread via RT
ould not locate compile-time value for symbol StaticLexPad $ perl6 --target=ast -e 'say "hi"' "ast" => PMC 'Eval' { ... } $ perl6 --target=past -e 'say "hi"' "past" => PMC 'PAST;Block'  {     => PMC 'GLOBAL

[perl #78510] make() with Hash argument sets $/.ast to pairlist

2010-10-21 Thread via RT
at the (a => 1, b => 2).hash generated, instead it's just a list of of pairs. Adding a $/.perl shows that it's the make() step that misbehaves, not the retrieval via .ast: 01:31 < moritz_> rakudo: class A { method TOP($/) { make ( a => 1 ).hash; say $/.perl } }; grammar B {

[perl #76276] [BUG] $() doesn't default to $/.Str if $/.ast is undefined in Rakudo

2010-06-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76276] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76276 > and $() defaults to $/.ast if it exists rakudo: "foo" ~~ /

[perl #60976] [PATCH] rakudo fails to build AST for subset declaration with regex literal

2008-12-01 Thread gabriele renzi
# New Ticket Created by "gabriele renzi" # Please include the string: [perl #60976] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60976 > The bug is visibile with the following line subset GenderStr of Str where /^[m|f]$/

AST PDD draft available for review (pdd26_ast.pod)

2007-10-16 Thread Patrick R. Michaud
I've just committed a draft of pdd26_ast.pod, which describes the Parrot Abstract Syntax Tree (PAST) model. Any comments, patches, or suggestions are greatly welcomed. Much of the new version of PAST is already implemented by the compiler toolkit (compilers/pct/), although there are a few diffe

Re: [perl #37791] [TODO] dir reorg: move ast/ to compilers/ast/

2005-12-06 Thread jerry gay
On 11/29/05, via RT jerry gay <[EMAIL PROTECTED]> wrote: > this will likely require configure, makefile, build, and documentation > modifications. this should be grouped with other compiler/-related > modifications. > it did, but they were minor ones. next is imcc/, which i expect to be a bit more

[perl #37791] [TODO] dir reorg: move ast/ to compilers/ast/

2005-11-29 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #37791] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37791 > this will likely require configure, makefile, build, and documentation modifications. this

Punie to AST

2005-11-23 Thread Allison Randal
I've checked in the code to transform PunieGrammar match objects into AST trees. The core pieces are: - A tree grammar for the transformation in languages/punie/lib/ pge2past.g - A series of AST node classes in languages/punie/lib/PAST/ - A script that parses a Punie source file, trans

Re: Pugs to become a Perl6 -> Parrot AST/IMC compiler.

2005-04-01 Thread Millsa Erlas
Autrijus Tang wrote: After a IRC meeting with Leo, I've outlined my roadmap of how to make the three compiler backends in Pugs to work in concert to provide a much faster evaluator: http://use.perl.org/~autrijus/journal/23890 Note that existing code in the Eval monad need not be rewritten; also

Pugs to become a Perl6 -> Parrot AST/IMC compiler.

2005-03-28 Thread Autrijus Tang
After a IRC meeting with Leo, I've outlined my roadmap of how to make the three compiler backends in Pugs to work in concert to provide a much faster evaluator: http://use.perl.org/~autrijus/journal/23890 Note that existing code in the Eval monad need not be rewritten; also Pugs will still ru

Re: AST

2004-10-08 Thread Leopold Toetsch
William Coleda wrote: So... how does one use AST? The by far simplest way (currently) is to create a textual representation (foo.past). Parrot/ast switches to AST parsing, if an extension .past is seen. Run "ast2past some.py" in languages/python to see how it looks like. There&#

AST

2004-10-07 Thread William Coleda
So... how does one use AST? There's a list of functions in `perldoc ast/node.c`, but that seems to be it. (nothing in docs or t). I don't see that it's used anywhere outside of ast/* ... Is this a C-only interface? If so, any plans to make PMC or opcode wrappers?

[CVS ci] parrot runs ast/hello.past

2004-08-01 Thread Leopold Toetsch
$ cd languages/python $ cat hello.py print "Hello AST" $ ./ast2past hello.py > hello.past $ cat hello.past # generated by pie-rate on Sun Aug 1 17:59:03 2004 Src_File("f.py") Py_Module( Stmts( Py_Print( Const('Hello PAST') ) # Py_Print Py_Prin

Re: Of AST and YAL

2003-09-11 Thread Leopold Toetsch
Leopold Toetsch <[EMAIL PROTECTED]> wrote: > I'm currently investigating the AST (abstract syntax tree) interface for > Parrot. For getting a feeling, how this could look like, I've > implemented (some parts) of Yet Another Language (YAL). I have put version yal-0.02 on m

Re: Of AST and YAL

2003-09-08 Thread James Michael DuPont
rary at such a central place inside Parrot. Yes. We can make a native structure. The only thing is this basic api. We dont need to 1. you represent the ast as a set of triples (maybe quads with context) so each thing is a statement like : subject predicate object [context]. 2. You can transform

Re: Of AST and YAL

2003-09-08 Thread Leopold Toetsch
ond I don't want an external library at such a central place inside Parrot. I also think (hvaing a short look at redland-0.9.14, that this might be some overkill to use that as the AST interface for parrot. OTOH ... Later on when we have a two-way gateway, then you will be able to use a pro

Re: Of AST and YAL

2003-09-08 Thread James Michael DuPont
--- Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Michal Wallace <[EMAIL PROTECTED]> wrote: > > (My plan for this week was to do something very similar, > > and try to get a simple lisplike language to integrate > > with python) > > I'm thinking of a

Re: Of AST and YAL

2003-09-08 Thread Leopold Toetsch
Michal Wallace <[EMAIL PROTECTED]> wrote: > On Sun, 7 Sep 2003, Leopold Toetsch wrote: >> I'm currently investigating the AST (abstract syntax tree) interface >> for Parrot. For getting a feeling, how this could look like, I've >> implemented (some parts) of

Re: Of AST and YAL

2003-09-07 Thread Michal Wallace
On Sun, 7 Sep 2003, Leopold Toetsch wrote: > I'm currently investigating the AST (abstract syntax tree) interface > for Parrot. For getting a feeling, how this could look like, I've > implemented (some parts) of Yet Another Language (YAL). I like it. What is this written in

Of AST and YAL

2003-09-07 Thread Leopold Toetsch
I'm currently investigating the AST (abstract syntax tree) interface for Parrot. For getting a feeling, how this could look like, I've implemented (some parts) of Yet Another Language (YAL). The dump below is a visual representation of the AST. The -o (optimize) option does som