public SyntaxFunc() { var item = new SyntaxNotifier(OnParse); item.Add(new SyntaxMatchBody(new[] { typeof(CharterFunc), typeof(IExpressionName), typeof(ExpressionParens), typeof(ExpressionBraces) })); Add(item); var item2 = new SyntaxNotifier(OnParse2); item2.Add(new SyntaxMatchBody(new[] { typeof(CharterFunc), typeof(ExpressionParens), typeof(ExpressionBraces) })); Add(item2); }
public SyntaxLambda() { var item = new SyntaxNotifier(OnParse); item.Add(new SyntaxMatchBody(new[] { typeof(IExpressionName), typeof(CharterEQ), typeof(CharterGT), typeof(IExpressionRight) })); Add(item); var item2 = new SyntaxNotifier(OnParse2); item2.Add(new SyntaxMatchBody(new[] { typeof(ExpressionParens), typeof(CharterEQ), typeof(CharterGT), typeof(IExpressionRight) })); Add(item2); }
public SyntaxReturn() { var item = new SyntaxNotifier(OnParse); item.Add(new SyntaxMatchBody(new[] { typeof(CharterRet), typeof(IExpressionRight) })); Add(item); var item2 = new SyntaxNotifier(OnParse2); item2.Add(new SyntaxMatchBody(new[] { typeof(CharterRet) })); Add(item2); }
public SyntaxForArgs() { var item = new SyntaxNotifier(OnParse); item.Add(new SyntaxMatchCount(5)); item.Add(new SyntaxMatchBody(new[] { typeof(ExpressionBind), typeof(CharterCMA), typeof(IExpressionRight), typeof(CharterCMA), typeof(IExpressionRight) })); Add(item); var item2 = new SyntaxNotifier(OnParse2); item2.Add(new SyntaxMatchCount(3)); item2.Add(new SyntaxMatchBody(new[] { typeof(ExpressionBind), typeof(CharterCMA), typeof(IExpressionRight) })); Add(item2); }