Commit Graph
12 Commits
Author SHA1 Message Date
Zoltan Varga 824710f744 2009-01-14 Zoltan Varga <[email protected]>
* CILCompiler.cs: Avoid throwing exceptions for a few more unhandled opcodes.
	Implement the reverse/ignorecase versions of Reference. Fix the reverse
	version of Bitmap. Error out if a Jump opcode jumps outside the current
	pc range. This works around #466151.

svn path=/trunk/mcs/; revision=123417
2009-01-14 21:33:40 +00:00
Zoltan Varga 6941113b7a 2008-10-25 Zoltan Varga <[email protected]>
* RxOp.cs: Remove unused Generic opcodes.

	* RxCompiler.cs: Emit opcodes with flags using methods which can be 
	overriden by CILCompiler.cs, so we only have to override a few methods.

	* CILCompiler.cs: Simplify based on the RxCompiler changes. Implement
	UnicodeString opcode. Throw a NotImplementedException when an unsupported
	opcode is encountered, since the IL compiler is now believed to be feature 
	complete.

svn path=/trunk/mcs/; revision=117047
2008-10-25 14:00:58 +00:00
Zoltan Varga 4b5c388a7b 2008-09-13 Zoltan Varga <[email protected]>
* RxInterpreter.cs RxCompiler.cs: Implement some missing Category opcodes.

svn path=/trunk/mcs/; revision=112914
2008-09-12 22:28:39 +00:00
Zoltan Varga 01fe2ef4e7 2008-08-31 Zoltan Varga <[email protected]>
* RxInterpreter.cs: Port the Anchor+StartOfString optimization from the old
	interpreter. Add credits.

	* RxCompiler.cs (EmitString): Lowercase the string if ignore is true.

svn path=/trunk/mcs/; revision=111989
2008-08-31 15:21:36 +00:00
Zoltan Varga 01bc43a4e2 2008-08-29 Zoltan Varga <[email protected]>
* RxInterpreter.cs RxCompiler.cs RxOp.cs: Implement/fix this so all the
	regex tests now run. The Repeat code is taken from the old interpreter.

svn path=/trunk/mcs/; revision=111925
2008-08-29 14:44:15 +00:00
Zoltan Varga 2b49ce098a 2008-08-28 Zoltan Varga <[email protected]>
* RxInterpreter.cs RxCompiler.cs RxOp.cs: Add support for 
	Category.AnySingleline.

svn path=/trunk/mcs/; revision=111747
2008-08-27 22:32:26 +00:00
Zoltan Varga 8d926d9b6c 2008-08-27 Zoltan Varga <[email protected]>
* RxCompiler.cs: Use Array.Copy since Buffer.BlockCopy operates on bytes.

svn path=/trunk/mcs/; revision=111679
2008-08-26 23:31:56 +00:00
Paolo Molaro e13ae1763b Thu Feb 14 17:11:10 CET 2008 Paolo Molaro <[email protected]>
* RxCompiler.cs, RxInterpreter.cs, RxOp.cs: replace EcmaDigit with
	Range, fixed matching of "" =~ /$/, implementedt TestCharGroup.
	Fixes and other misc opcodes implemented.


svn path=/trunk/mcs/; revision=95641
2008-02-14 15:31:24 +00:00
Zoltan Varga b44106f869 2008-02-13 Zoltan Varga <[email protected]>
* CILCompiler.cs: New file, extracted from RxCompiler.cs.

svn path=/trunk/mcs/; revision=95582
2008-02-13 14:58:33 +00:00
Zoltan Varga 4f88a475b5 2008-02-13 Zoltan Varga <[email protected]>
* RxInterpreter.cs RxCompiler.cs: First version of regex IL compiler.

svn path=/trunk/mcs/; revision=95580
2008-02-13 14:30:06 +00:00
Paolo Molaro e5481eeed7 Wed Feb 13 13:18:12 CET 2008 Paolo Molaro <[email protected]>
* RxCompiler.cs, RxInterpreter.cs, RxOp.cs: unicode categories and
	some grouping/capture support.


svn path=/trunk/mcs/; revision=95565
2008-02-13 11:36:07 +00:00
Paolo Molaro 17bf580219 Tue Feb 12 19:16:49 CET 2008 Paolo Molaro <[email protected]>
* RxCompiler.cs, RxInterpreter.cs, RxOp.cs: experimental new
	interpreter.


svn path=/trunk/mcs/; revision=95534
2008-02-12 17:35:01 +00:00