On 08.06.2020 14:24, Rick McGuire wrote:
>
>
> On Mon, Jun 8, 2020 at 8:06 AM Rony G. Flatscher <rony.flatsc...@wu.ac.at
> <mailto:rony.flatsc...@wu.ac.at>> wrote:
>
>     On 08.06.2020 13:39, Rick McGuire wrote:
>>     My incubator version has named captures, and also has a new feature I've 
>> not seen other regex
>>     packages, reusable named patterns. For example, one of the standard 
>> patterns is a  URL:
>>     pattern that has named elements like protocol, port, domain name, etc. 
>> Rather than having to
>>     copy and paste one of these patterns into your own, you can refer to 
>> them by name. I'm a bit
>>     stalled on the design of user pattern libraries at the moment, but this 
>> is a very powerful
>>     concept. 
>>
>>     While a regex can be incorporated into the PARSE instruction, it would 
>> only be in a very
>>     simplistic way. My implementation has a parsing context class that 
>> supports everything the
>>     PARSE instruction does and quite a bit more beyond what PARSE can do.
>
>     Went into incubator/regex and loaded the programs: *wow*!
>
>     Overwhelming from the functionality that is there already (currently 
> there are 87 classes in
>     regex.cls)!!
>
>     Would it be already possible to parse xml elements (supplying the tag 
> name and having the
>     parser parse everything to the matching end tag, independently whether 
> the tag name gets
>     recursively used) with a single pattern?
>
> If such a thing is possible with a regex, then it should be possible with 
> this version.
:)
>
>     What would you suggest to study first in order to understand what you 
> have created so far?
>
> No docs written for this at all. This was originally based on the Java 
> version, so it follows that
> for most of the patterns. Probably the best place to start would be to look 
> at what the test cases
> are doing.

Thank you for these hints!

Went to the test cases, however, currently there is something wrong with 
regex.cls:

    F:\work\svn\oorexx\incubator\regex>rexx Parser.testGroup
      6229 *-* otherwise  do
        52 *-* ::requires "regex.cls"
    Error 9 running F:\work\svn\oorexx\incubator\regex\regex.cls line 6229:  
Unexpected WHEN or OTHERWISE.
    Error 9.2:  OTHERWISE has no corresponding SELECT.

---rony



_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to