Skip to content

Instantly share code, notes, and snippets.

View FROGGS's full-sized avatar

Tobias Leich FROGGS

  • Germany (near Berlin)
View GitHub Profile
use v6;
grammar IETF::RFC_Grammar::IPv6 {
token IPv6address {
[ <.h16> ':' ] ** 6 <.ls32> |
'::' [ <.h16> ':' ] ** 5 <.ls32> |
[ <.h16> ]? '::' [ <.h16> ':' ] ** 4 <.ls32> |
[ [ <.sep_h16> ]? <.h16> ]? '::' [ <.h16> ':' ] ** 3 <.ls32> |
[ [ <.sep_h16> ] ** 0..2 <.h16> ]? '::' [ <.h16> ':' ] ** 2 <.ls32> |
[ [ <.sep_h16> ] ** 0..3 <.h16> ]? '::' <.h16> ':' <.ls32> |
$ perl6-m --ll-exception -e 'sub a is export { "foo" }; say &EXPORT::ALL::a()'
foo
$ perl6-m --ll-exception -e 'sub a is export { "foo" }; say &EXPORT::ALL::a'
sub a () { #`(Sub|83431696) ... }
$ perl6-m --ll-exception -e 'sub a is export { "foo" }; say EXPORT::ALL::a'
(Any)
diff --git a/src/Perl6/Actions.nqp b/src/Perl6/Actions.nqp
index c570f57..253a648 100644
--- a/src/Perl6/Actions.nqp
+++ b/src/Perl6/Actions.nqp
@@ -4734,11 +4734,39 @@ class Perl6::Actions is HLL::Actions does STDActions {
method circumfix:sym<( )>($/) {
my $past := $<semilist>.ast;
+ my @args;
+ # look for any chained adverb pairs
[
[
{
"CompUnitRepo::Local::Installation" : {
"perl" : "/home/froggs/dev/nqp/install/languages/perl6"
}
},
{
"CompUnitRepo::Local::Installation" : {
"vendor" : "/home/froggs/dev/nqp/install/languages/perl6/vendor"
@FROGGS
FROGGS / zav.sh
Last active August 29, 2015 14:13
PERL6LIB=lib prove -e perl6-m t/*.t
t/01-argless.t ......... ok
t/02-simple-args.t ..... ok
t/03-simple-returns.t .. ok
t/04-pointers.t ........ ok
t/05-arrays.t .......... 1/20
# Failed test 'int in struct in element 0'
# at t/05-arrays.t line 50
# expected: '2'
# got: '876148073976299522'
use v6;
use NativeCall;
use Test;
class b2Vec2 is repr<CStruct> { }
my role NativeCallSymbol[Str $name] {
method native_symbol() { $name }
}
use NativeCall;
class b2Vec2 is repr<CStruct> {
has num32 $.x;
has num32 $.y;
}
class b2World is repr<CPPStruct> {
has OpaquePointer $.data;
method new(b2Vec2) is symbol<b2World::new> is native("libBox2D") { * }
diff --git a/src/spesh/log.c b/src/spesh/log.c
index ac1dafa..241b1d9 100644
--- a/src/spesh/log.c
+++ b/src/spesh/log.c
@@ -58,7 +58,7 @@ void MVM_spesh_log_add_logging(MVMThreadContext *tc, MVMSpeshGraph *g, MVMint32
case MVM_OP_getlex_no:
case MVM_OP_getattr_o:
case MVM_OP_getattrs_o:
- case MVM_OP_getlexstatic_o:
+ //~ case MVM_OP_getlexstatic_o:
#!/bin/bash
~/dev/make_moar && ~/dev/make_nqp && ~/dev/make_rakudo
Acme::Meow * True True moar
JSON::Tiny * True True moar
Testing * True True moar
mandelbrot * moar
IO::Prompter * True False moar
Math::Polynomial * True True moar
Math::Vector * True True moar
Math::ContinuedFractions * True True moar
Math::ChebyshevPolynomial * True True moar
Math::OddFunctions * True True moar