@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
26 lines (25 loc) • 899 B
TypeScript
/**
* Represents R's `.standard_regexps` definitions.
* @see https://github.com/r-devel/r-svn/blob/44474af03ae77fd3b9a340279fa10cb698d106c3/src/library/base/R/utils.R#L52-L53
*/
export declare const RStandardRegexp: {
/** `[[:alpha:]][[:alnum:].]*[[:alnum:]]` */
ValidPackageName: RegExp;
/** `([[:digit:]]+[.-]){1,}[[:digit:]]+` */
ValidPackageVersion: RegExp;
/** `[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+` */
ValidRSystemVersion: RegExp;
/** `([[:digit:]]+[.-])*[[:digit:]]+` */
ValidNumericVersion: RegExp;
};
/**
* Based on the C-definition:
* ```txt
* !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
* ```
*/
export declare const RPunctuationChars = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
/**
* Converts an R regex pattern (which may include POSIX character classes) into a JavaScript RegExp.
*/
export declare function parseRRegexPattern(pattern: string): RegExp;