[Mono-devel-list] IL Regex First Release

Eric Durand Tremblay eric.durand-tremblay.1 at ulaval.ca
Tue Apr 20 15:23:37 EDT 2004


Hi all,

Since we are a little bit short of time, we want to publish a first 
release of the CILCompiler.  It's not perfect, it's not feature 
complete, but no mutch less than the interpreter.

We are actually blocked with some case of imbricated regex and it won't 
be possible to finish before the deadline.

Some things who where recursive in the interpreter are very difficult to 
render in an iterative fashion.

So, the compiler actually do Well :
- Litteral matching
- Capturing group
- Character class
- Back references
- Any anchor (Zero width assetion)
- Alternation with simple nested regex ( no repetition )
- Repetition of simple regex

Here is the list of known bug :
- some case of alternation nested with repetitions
- RightToLeft in compiled mode still have some mismatch
- All commented test cases in CILRegexTrials.cs...

What's not implemented :
- Balancing groups
- Lookahead / Lookbehind
- Nonbactracking group
- Conditionnal alternation

So, if anyone want to give it a try, here are the patches.
Note that System.dll must be compiled with --unsafe in orther to compile 
the Compiler.

Before applying any patch, it is necessary to do a "dos2unix -U *" in 
System.Text.RegularExpressions and Test/System.Text.RegularExpressions.
All patch are made from mcs/class/System

Eric Durand-Tremblay
François Poirier-Beauchemin
University Laval
Québec (Canada)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CILRegex.patch
Type: text/x-patch
Size: 104375 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040420/3ee76b8b/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CILRegexUnitTest.patch
Type: text/x-patch
Size: 47109 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040420/3ee76b8b/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: System.dll.sources.patch
Type: text/x-patch
Size: 555 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040420/3ee76b8b/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: System_test.dll.sources.patch
Type: text/x-patch
Size: 380 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040420/3ee76b8b/attachment-0003.bin 


More information about the Mono-devel-list mailing list