The R Project SVN R

Rev

Rev 17211 | Rev 56184 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17211 Rev 18994
Line 1... Line 1...
1
\name{languageEl}
1
\name{languageEl}
2
\alias{languageEl}
2
\alias{languageEl}
3
\alias{languageEl<-}
3
\alias{languageEl<-}
4
\alias{isGrammarSymbol}
4
\alias{isGrammarSymbol}
5
\title{Elements of Language Objects}
5
\title{Elements of Language Objects}
-
 
6
\description{
-
 
7
  Internal routines to support some operations on language objects.
-
 
8
}
6
\usage{
9
\usage{
7
languageEl(object, which)
10
languageEl(object, which)
8
 
11
 
9
isGrammarSymbol(symbol)
12
isGrammarSymbol(symbol)
10
 
13
 
11
}
14
}
12
\description{
-
 
13
  Internal routines to support some operations on language objects.
-
 
14
}
-
 
15
\section{Summary of Functions}{
15
\section{Summary of Functions}{
16
\describe{  
16
  \describe{  
17
  \item{\code{languageEl}:}{ 
17
    \item{\code{languageEl}:}{ 
18
  extract an element of a language object, consistently
18
      extract an element of a language object, consistently for
19
for different kinds of objects.
19
      different kinds of objects.
20
 
20
 
21
The 1st., etc. elements of a function are the corresponding
21
      The 1st., etc. elements of a function are the corresponding formal
22
formal arguments, with the default expression if any as value.
22
      arguments, with the default expression if any as value.
23
 
23
 
24
The first element of a call is the name or the function object being
24
      The first element of a call is the name or the function object
25
called.  
25
      being called.  
26
 
26
 
27
  The 2nd, 3rd, etc. elements are the 1st, 2nd, etc. arguments expressions.
27
      The 2nd, 3rd, etc. elements are the 1st, 2nd, etc. arguments
28
Note that the form of the extracted name is different for R and S-Plus.
28
      expressions.  Note that the form of the extracted name is
-
 
29
      different for R and S-Plus.  When the name (the first element) of
29
When the name (the first element) of a call is replaced, the languageEl replacement
30
      a call is replaced, the languageEl replacement function coerces a
30
function coerces a character string to the internal form for each system.
31
      character string to the internal form for each system.
31
 
32
 
32
The 1st, 2nd, 3rd elements of an \code{if} expression are the test, first, and second branch.
33
      The 1st, 2nd, 3rd elements of an \code{if} expression are the
-
 
34
      test, first, and second branch.
33
 
35
 
34
The 1st element of a \code{for} object is the name (symbol) being used in the loop,
36
      The 1st element of a \code{for} object is the name (symbol) being
-
 
37
      used in the loop, the second is the expression for the range of
35
the second is the expression for the range of the loop, the third is the body of the loop.
38
      the loop, the third is the body of the loop.
36
 
39
 
37
The first element of a \code{while} object is the loop test, and the second the body of
40
      The first element of a \code{while} object is the loop test, and
-
 
41
      the second the body of the loop.
38
the loop.
42
    }
39
}
43
    
-
 
44
    \item{\code{isGrammarSymbol}:}{
40
\item{isGrammarSymbol:}{Checks whether the symbol is part of the
45
      Checks whether the symbol is part of the grammar.
41
    grammar.  Don't use this function directly.}
46
      Don't use this function directly.
-
 
47
    }
42
}
48
  }
43
}
49
}
44
\keyword{internal}
50
\keyword{internal}