[Aeditor-talk] Regexp assertions
Mark
msparshatt at yahoo.co.uk
Wed Dec 24 10:02:27 EST 2003
On Wednesday 24 Dec 2003 9:56 am, Simon Strandgaard wrote:
> When doing 'ruby test_perl6parser.rb', so that the file gets
> executed alone, were broken.. I have fixed it.
>
Okay, thanks.
> > I've started working on parsing the different types of code block. I've
> > added a test creating a regexp that matches a number that is up to 3
> > digits long then uses a code assertion to check that the number is less
> > than 256.
>
> Why is there a max limit of 256 ? I think I have misunderstood
> something.
well it's just an example of using a code assertion. If you wanted to extract
a number between 0 and 256 from a string then this is one way to do it.
>
> > One thing I'd like to do is modify the NewRegexp class so that the
> > initialize function takes as an optional parameter a class object which
> > it would use as the parser for the regexp. This would default to being
> > the standard Parser class. What do you thinkk?
>
> Thats Ok, if things doesn't work out, then we can alway change it.
>
Okay then. I'm home early from work today so I'll do that now.
Best Regards
Mark Sparshatt
More information about the Aeditor-talk
mailing list