public static void add_inline_regexpr(RegularExpression r)
 {
     if (!(r is REndOfFile)) {
         TokenProduction p = new TokenProduction();
         p.IsExplicit = false;
         p.LexStates = new String[] {"DEFAULT"};
         p.Kind = TokenProduction.TOKEN;
         RegExprSpec res = new RegExprSpec();
         res.RegularExpression = r;
         res.RegularExpression.TokenProductionContext = p;
         res.Action = new Action();
         res.NextState = null;
         res.NextStateToken = null;
         p.RegexSpecs.Add(res);
         CSharpCCGlobals.rexprlist.Add(p);
     }
 }
 public static void add_inline_regexpr(RegularExpression r)
 {
     if (!(r is REndOfFile))
     {
         TokenProduction p = new TokenProduction();
         p.IsExplicit = false;
         p.LexStates  = new String[] { "DEFAULT" };
         p.Kind       = TokenProduction.TOKEN;
         RegExprSpec res = new RegExprSpec();
         res.RegularExpression = r;
         res.RegularExpression.TokenProductionContext = p;
         res.Action         = new Action();
         res.NextState      = null;
         res.NextStateToken = null;
         p.RegexSpecs.Add(res);
         CSharpCCGlobals.rexprlist.Add(p);
     }
 }
Exemple #3
0
 private static void prepareToRemove(IList <RegExprSpec> vec, RegExprSpec item)
 {
     removeList.Add(vec);
     itemList.Add(item);
 }
 private static void prepareToRemove(IList<RegExprSpec> vec, RegExprSpec item)
 {
     removeList.Add(vec);
     itemList.Add(item);
 }