public static EV3InlineDefinition Create(string signature, string code)
        {
            Match match = Regex.Match(signature, "inline[ \t]*([^ \t]+)[ \t]*//[ \t]*([SFAX8]*)([SFAX8V])([ \t]+([^ \t\n\r]+))*", RegexOptions.Singleline);

            if (match.Success)
            {
                EV3InlineDefinition sub = new EV3InlineDefinition(match.Groups[1].Value, signature, code);
                sub.ParseParameterTypes(match.Groups[2].Value);
                sub.ParseReturnType(match.Groups[3].Value);
                return(sub);
            }
            return(null);
        }
Exemple #2
0
 private void LoadInline(string line, StringReader reader)
 {
     AddSub(EV3InlineDefinition.Create(line, GetBlock(reader)), line);
 }