Ejemplo n.º 1
0
        protected void GenerateFunctionDefinition(
            CParser.FunctionDefinitionContext functionDefinition)
        {
            var typeSpecifier     = functionDefinition.RBATypeSpecifier();
            var identifier        = functionDefinition.RBAIdentifier();
            var parameters        = functionDefinition.RBAParameters();
            var compoundStatement = functionDefinition?.compoundStatement();

            DefineFunction(typeSpecifier, identifier, parameters);
            EmitFunction(typeSpecifier, identifier, parameters, compoundStatement);
        }