parse {thriftr}R Documentation

Parse a single thrift file to R6 class instance

Description

Parse a single thrift file to R6 class instance

Usage

parse(path, module_name = NA, include_dirs = NA, lexer = NA,
  parser = NA, enable_cache = TRUE)

Arguments

path

file path to parse, should be a string ending with '.thrift'

module_name

the name for parsed module, the default is the basename without extension of 'path'

include_dirs

directories to find thrift files while processing the ‘include' directive, by default: [’.']

lexer

rly lexer to use, if not provided, 'parse' will use a new one

parser

rly parser to use, if not provided, 'parse' will use a new one

enable_cache

if this is set to be 'TRUE', parsed module will be cached, this is enabled by default. If 'module_name' is provided, use it as cache key, else use the 'path'

Value

Thrift module


[Package thriftr version 1.1.7 Index]