Changeset 9726
- Timestamp:
- 07/19/13 00:54:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL/3.4/SourceReader.cs
r9430 r9726 1 1 using System.Collections.Generic; 2 using System;3 2 using System.Linq; 4 using System.Text;5 3 using System.Text.RegularExpressions; 6 4 7 5 public class SourceReader { 8 private static Action<string> nextAction;9 public static void WithNext(Action<string> action) {10 if (nextAction != null) throw new ArgumentException();11 nextAction = action;12 }13 public static void Handle(string src) {14 if (nextAction != null)15 nextAction(src);16 nextAction = null;17 }18 6 19 7 private static Regex formalParameterExpr = new Regex(@"\s*,?\s*((?<refOrOut>(out|ref))\s+)?(?<type>[_\w]*)\s+(?<id>[_\w]*)\s*");
Note: See TracChangeset
for help on using the changeset viewer.