Skip to content

Instantly share code, notes, and snippets.

View ingydotnet's full-sized avatar

Ingy döt Net ingydotnet

View GitHub Profile
HEAD is now at 62d1e51... Rakudo release version.
cp rakudo-star-2010.07/rakudo/build/PARROT_REVISION rakudo-star-2010.07/build
touch rakudo-star-2010.07/MANIFEST
find rakudo-star-2010.07 -name '.*' -prune -o -type f -printf '%P\n' >rakudo-star-2010.07/MANIFEST
find: -printf: unknown option
make: *** [rakudo-star-2010.07/MANIFEST] Error 1
- Make testml-grammar more Pegex syntax
- Get node.js working
- Test Test.Simple.js on node.js
- Port TestML and Pegex to js
- Backport TestML and Pegex to Python
- Use pegex for C'Dent
- Write Pegex::Compiler
- Move atoms to Pegex
- Add Pegex to my project list
- Test the Not HAS and OK assertions
thing: <foo> <bar>*
foo: [ /abc/ <bar> /xyz/ ] | <this>
bar: <this> | <that>
this: /.../
that: /.../
thing: <foo> <bar>*
foo: [ /abc/ <DEBUG bar> /xyz/ ] | <this>
bar: <this> | <that>
this: /.../
that: /.../
my $text = $self->grammar->{$rule};
my @tokens = ($text =~ m{(
/[^/]*/ |
<[\!\&]?\w+> |
`[^`]*` |
\| |
\[[\!\&?]? |
\][\?\*\+]?
\([\!\&?]? |
\)[\?\*\+]?
assertion_call => <assertion_eq> | <assertion_ok> | <assertion_has>
---
- '['
- '<assertion_eq>'
- '|'
- '<assertion_ok>'
- '|'
- '<assertion_has>'
- ']'
...
assertion_call => <assertion_eq> | <assertion_ok> | <assertion_has>
---
- '['
- '<assertion_eq>'
- '|'
- '<assertion_ok>'
- '|'
- '<assertion_has>'
- ']'
...
# A real life performance comparison of equivalent software in Perl 5 and Perl 6:
(ingynet-2.local) ingy /Users/ingy/src/testml-pm
> time make test > /dev/null 2>&1
real 0m1.013s
user 0m0.852s
sys 0m0.186s
# A real life performance comparison of equivalent software in Perl 5 (5.10.0) and Perl 6 (Rakudo Star):
(ingynet-2.local) ingy /Users/ingy/src/testml-pm
> time make test > /dev/null 2>&1
real 0m1.013s
user 0m0.852s
sys 0m0.186s
(ingynet-2.local) ingy /Users/ingy/src/testml-pm6
> PERL5LIB=/Users/ingy/src/niecza/ PERL6=/Users/ingy/src/niecza/niecza_eval make -e test
mkdir -p `dirname 'blib/lib/TestML/Parser.pir'`
env PERL6LIB=/Users/ingy/src/testml-pm6/blib/lib:/Users/ingy/src/testml-pm6/lib: /Users/ingy/src/niecza/niecza_eval --target=pir --output=blib/lib/TestML/Parser.pir lib/TestML/Parser.pm
Unknown option: target
Unknown option: output
niecza -- a command line wrapper for Niecza