Skip to content

Instantly share code, notes, and snippets.

Avatar

Yixuan Qiu yixuan

View GitHub Profile
View highr.r
stopifnot(getRversion() >= '3.0.0')
.keywords = c('FUNCTION', 'IF', 'ELSE', 'WHILE', 'FOR', 'IN', 'BREAK', 'REPEAT', 'NEXT')
.cmd.list = c(
NUM_CONST = 'number',
SYMBOL_FUNCTION_CALL = 'functioncall',
STR_CONST = 'string',
setNames(rep('keyword', length(.keywords)), .keywords),
SYMBOL_FORMALS = 'argument',