The R Project SVN R

Rev

Rev 23634 | Rev 41429 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19087 jmc 1
\name{language-class}
2
\docType{class}
3
\alias{language-class}
4
\alias{(-class}
5
\alias{<--class}
6
\alias{call-class}
7
\alias{for-class}
8
\alias{if-class}
9
\alias{repeat-class}
10
\alias{while-class}
11
\alias{name-class}
23706 ripley 12
\alias{{-class}
13
 
19087 jmc 14
\title{Classes to Represent Unevaluated Language Objects }
15
\description{  The virtual class \code{"language"} and the specific
16
  classes that extend it represent unevaluated objects, as produced for
17
  example by the parser or by functions such as \code{\link{quote}}.
18
}
19
\usage{
20
### each of these classes corresponds to an unevaluated object
21
### in the S language.  The class name can appear in method signatures,
22
### and in a few other contexts (such as some calls to as()).
23
 
24
"("
25
"<-"
26
"call"
27
"for"
28
"if"
29
"repeat"
30
"while"
31
"name"
32
"\{"
33
 
34
### Each of the classes above extends the virtual class
35
 
36
"language"
37
 
38
 
39
 
40
}
19089 jmc 41
\section{Objects from the Class}{
42
  \code{"language"} is a virtual class; no objects may be created from
19087 jmc 43
  it.
44
 
19157 jmc 45
Objects from the other classes can be generated by a call to
19087 jmc 46
\code{new(Class, ...)}, where \code{Class} is the quoted class name, and
47
the \dots arguments are either empty or a \emph{single} object that is
48
from this class (or an extension).}
49
 
50
 
51
\section{Methods}{
52
  \describe{
53
    \item{coerce}{\code{signature(from = "ANY", to = "call")}.  A method
54
      exists for \code{as(object, "call")}, calling \code{as.call()}. }
55
  }
56
 
57
}
58
\keyword{classes}