Changeset 10079
- Timestamp:
- 10/22/13 19:23:48 (11 years ago)
- Location:
- branches/HeuristicLab.Problems.GPDL
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL.sln ¶
r10064 r10079 40 40 Examples\multi-output-multiplier.txt = Examples\multi-output-multiplier.txt 41 41 Examples\Multiplexer.txt = Examples\Multiplexer.txt 42 Examples\RoyalTree.txt = Examples\RoyalTree.txt 42 43 Examples\symbreg HEAL.txt = Examples\symbreg HEAL.txt 43 44 Examples\symbreg Koza.txt = Examples\symbreg Koza.txt … … 110 111 {E2060931-6700-464B-9E82-50846D7AE4E9} = {3768D612-38EB-47D8-9E79-75D8E5AB00A8} 111 112 EndGlobalSection 112 GlobalSection(Performance) = preSolution113 HasPerformanceSessions = true114 EndGlobalSection115 113 EndGlobal -
TabularUnified branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL/3.4/Util.cs ¶
r10067 r10079 26 26 public class Util { 27 27 // simplistic regex for formal parameters, any string of non-whitespace and not comma characters is allowed as a type name 28 // this has to be changed to allow for e.g., generic types (S<T0, T1>) and for expressions in actual parameters (max(x, 0) + 1)) 28 29 private static string refOrOutGroup = @"(?:(?<refOrOut>(out|ref))\s+)"; // "ref " | "out " 29 private static string typeGroup = @"(?:(?<type>[^ ,\f\n\r\t\v]*)\s+)";30 private static string identGroup = @"(?<id>[ \w]+)\s*";30 private static string typeGroup = @"(?:(?<type>[^,]+)\s+)"; 31 private static string identGroup = @"(?<id>[^,]+)\s*"; 31 32 private static Regex formalParameterExpr = new Regex(@"\s*,?\s*" + refOrOutGroup + "?" + typeGroup + "?" + identGroup, RegexOptions.ECMAScript); 32 33 public static IEnumerable<TerminalNode.FieldDefinition> ExtractParameters(string formalParameterSrc) {
Note: See TracChangeset
for help on using the changeset viewer.