[Aeditor-talk] Regexp assertions
Simon Strandgaard
neoneye at adslhome.dk
Mon Dec 15 23:19:26 EST 2003
On Mon, 2003-12-15 at 22:54, Mark wrote:
> > You are welcome to add it.
>
> okay I've commited it.
Great
> I've also added tests for the cases /(...]/ amd /[...)/ to make sure that they
> throw errors.
>
> At the moment either case throws a runtime error saying "mismatched brackets"
>
> I've added a TODO.perl6 file as well
Yes I have looked at it.
Are you aware that you can get the constructed AbstractSyntaxTree
printed?? so that when you are straigthen out parse problems, its will
be easier to spot errornous constructions, and perhaps get a clue why
they occured.
enabling debugging for just one testcase:
You can also use puts/p/print statements inside your code the
same way as in 'scanner.rb'. In order to do that, you will have
to "include Debuggable" into the Perl6Parser class.
In the TestPerl6Parser class you can now use the 'debug' keyword,
For instance: debug :test_repeat_range1
Can you get this debugging thing to work? need any help?
BTW: Do you know if there exists testsuites that exercises this
user-friendly perl6 syntax ?
--
Simon Strandgaard
More information about the Aeditor-talk
mailing list