コード例 #1
0
        private ProductionActionDelegate BuildExecuteRuleAction()
        {
            var generator = new ProductionActionGenerator();
            var result    = new CachedMethod <ProductionActionDelegate>(
                "Bootstrap." + source.FullLanguageName + ".GrammarActions",
                (emit, args) =>
            {
                generator.BuildBody(emit, data, args);
                return(emit.Ret());
            }).Delegate;

            return(result);
        }
コード例 #2
0
        private ClassSyntax BuildMethod_GrammarAction(ClassSyntax context)
        {
            var generator = new ProductionActionGenerator();

            return(generator.BuildMethod(context, RuleActionMethodName, data));
        }