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'
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
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
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
# 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
# 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:
# 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
> 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/
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
-glossary.pod
Log Message:
---
point out ".ast" is an alternative to ".made".
# 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: {} }&
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.
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«42Null check failed for 
> in any [...]»
> so close.
> * masak submits rakudob
# 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 {{{$
-glossary.pod
Log Message:
---
WP link to AST
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
Log Message:
---
[S05] Reintroduce the .ast method.
Every good language has a few synonyms anyway :) .
:
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
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
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
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 {
# 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" ~~ /
# 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]$/
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
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
# 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
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
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
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
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
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?
$ 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
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
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
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
--- 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
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
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
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
39 matches
Mail list logo