R/ParserDef_class.R

setClass("ParserDef",
         representation(
             option_defs = "list"
         ),
         prototype(
             option_defs = list()
         )
         )

setGeneric( 'define_option',
           function (obj, new_setting) { standardGeneric('define_option')}
           )

setGeneric( 'get_defined_option_correspondence',
           function (obj) { standardGeneric('get_defined_option_correspondence')}
           )

setGeneric( 'parse_with_defs',
           function (obj, cmd_args) { standardGeneric('parse_with_defs')}
           )

Try the defineOptions package in your browser

Any scripts or data that you put into this service are public.

defineOptions documentation built on Nov. 2, 2023, 6:27 p.m.