/swish/pack/rserve_client/prolog/r/r_grammar.pl
All Application Manual Name SummaryHelp

  • prolog
    • r
      • r_call.pl -- R plugin for SWISH
      • r_serve.pl -- SWI-Prolog Rserve client
      • r_grammar.pl -- R parser primitives
        • r_tokens//1
        • r_identifier/1
        • r_token//1
        • r_identifier/1
      • r_term.pl -- Translate a Prolog term into an R expression
      • r_expand_dot.pl
      • r_data.pl -- R data frame handling
      • r_sandbox.pl -- Declare the R API safe
 r_token(-Token)// is semidet
Get an R token from the input. Defined tokens are:
number(FloatOrInt)
Used for numerical constants.
complex(FloatOrInt)
Used for <number>i.
string(String)
Used for quoted strings.
identifier(Atom)
General identifier (includes function names)
constant(Atom)
Reserved constants (e.g., NULL, NA, ...)
logical(Boolean)
Used for TRUE and FALSE
keyword(Atom)
Used for if, else, etc.
infix(Atom)
Used for %...% infix operators
op(Atom)
Used for +, -, *, etc.
punct(Atom)
Used for the braces {[()]} and the comma (,)
comment(String)
Used for # Comment lines.