Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Allison (3003)

  (email not shown publicly)

Human (I think).

Journal of Allison (3003)

Thursday December 08, 2005
02:13 AM

Punie, print "ok 1"

[ #27890 ]

Today I worked on expanding Punie. Until now it has only been able to print a single digit, and only allowed one print statement in a file. It can now handle more than one statement in a file, and can print multi-digit integers and double-quoted strings.

  print 1;
  print 23;
  print "ok 1\n";

The double-quoted strings use the Text::Bracketed feature Patrick developed for PGE.

I've also started working on switching the Punie grammar over to the new, more maintainable way PGE offers for defining grammars. So, instead of:

p6rule('\d+ | <PGE::Text::bracketed: ">', 'PunieGrammar', 'term')

I can now say:

  grammar PunieGrammar;
  rule term    { \d+ | <PGE::Text::bracketed: "> }

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.