public Parser functionIdParagraph() {
        if (functionIdParagraphParser == null) {
           FutureParser future = scoped("functionIdParagraph");
           functionIdParagraphParser = future;
           future.setParser(
               sequence(
                   token("FUNCTION-ID"),
                   optional(
                       token(".")
                   ),
                   functionName(),
                   optional(
                       sequence(
                           token("AS"),
                           literal()
                       )
                   ),
                   optional(
                       sequence(
                           optional(
                               token("IS")
                           ),
                           token("PROTOTYPE")
                       )
                   ),
                   optional(
                       token(".")
                   )
               )
           );
        }

        return functionIdParagraphParser;
    }