Punie, print "ok 1"

Allison on 2005-12-08T07:13:14

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+ | ', 'PunieGrammar', 'term')
...
I can now say:
  grammar PunieGrammar;
  rule term    { \d+ |  }
  ...


All tests successful.

nicholas on 2005-12-08T14:28:55

Cool, so it can now run

print "1..1\n";
print "ok 1\n";

and hence pass all its own tests?