Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
62b635da
Commit
62b635da
authored
9 years ago
by
Lukas Stadler
Browse files
Options
Downloads
Patches
Plain Diff
extend set of well-known functions in EvaluatedArgumentsVisitor
parent
76227ee5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.parser/src/com/oracle/truffle/r/parser/tools/EvaluatedArgumentsVisitor.java
+31
-8
31 additions, 8 deletions
...cle/truffle/r/parser/tools/EvaluatedArgumentsVisitor.java
with
31 additions
and
8 deletions
com.oracle.truffle.r.parser/src/com/oracle/truffle/r/parser/tools/EvaluatedArgumentsVisitor.java
+
31
−
8
View file @
62b635da
...
...
@@ -22,14 +22,36 @@
*/
package
com.oracle.truffle.r.parser.tools
;
import
java.util.*
;
import
com.oracle.truffle.r.parser.ast.*
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Set
;
import
com.oracle.truffle.r.parser.ast.ASTNode
;
import
com.oracle.truffle.r.parser.ast.AccessVariable
;
import
com.oracle.truffle.r.parser.ast.AccessVariadicComponent
;
import
com.oracle.truffle.r.parser.ast.ArgNode
;
import
com.oracle.truffle.r.parser.ast.AssignVariable
;
import
com.oracle.truffle.r.parser.ast.BinaryOperation
;
import
com.oracle.truffle.r.parser.ast.Break
;
import
com.oracle.truffle.r.parser.ast.Call
;
import
com.oracle.truffle.r.parser.ast.Constant
;
import
com.oracle.truffle.r.parser.ast.For
;
import
com.oracle.truffle.r.parser.ast.Function
;
import
com.oracle.truffle.r.parser.ast.If
;
import
com.oracle.truffle.r.parser.ast.Missing
;
import
com.oracle.truffle.r.parser.ast.Next
;
import
com.oracle.truffle.r.parser.ast.Operation.ArithmeticOperator
;
import
com.oracle.truffle.r.parser.ast.Operation.Operator
;
import
com.oracle.truffle.r.runtime.*
;
import
com.oracle.truffle.r.runtime.data.*
;
import
com.oracle.truffle.r.runtime.nodes.*
;
import
com.oracle.truffle.r.parser.ast.Repeat
;
import
com.oracle.truffle.r.parser.ast.Replacement
;
import
com.oracle.truffle.r.parser.ast.Sequence
;
import
com.oracle.truffle.r.parser.ast.UnaryOperation
;
import
com.oracle.truffle.r.parser.ast.While
;
import
com.oracle.truffle.r.runtime.ArgumentsSignature
;
import
com.oracle.truffle.r.runtime.data.FastPathFactory
;
import
com.oracle.truffle.r.runtime.nodes.RFastPathNode
;
final
class
Info
{
public
static
final
Info
EMPTY
=
new
Info
(
Collections
.
emptySet
(),
Collections
.
emptySet
(),
false
);
...
...
@@ -75,8 +97,9 @@ final class Info {
public
final
class
EvaluatedArgumentsVisitor
extends
BasicVisitor
<
Info
>
{
private
static
final
Set
<
String
>
wellKnownFunctions
=
new
HashSet
<>(
Arrays
.
asList
(
"$"
,
"@"
,
"["
,
"any"
,
"dim"
,
"dimnames"
,
"is.null"
,
"list"
,
"names"
,
"return"
,
"print"
,
"length"
,
"rep"
,
"max"
,
"matrix"
,
"is.array"
,
"is.element"
,
"is.character"
,
"exp"
,
"all"
,
"pmin"
,
"pmax"
,
"as.numeric"
,
"as.integer"
,
".Call"
,
"sum"
,
"order"
,
"rev"
,
"integer"
,
"double"
));
private
static
final
Set
<
String
>
wellKnownFunctions
=
new
HashSet
<>(
Arrays
.
asList
(
"c"
,
"$"
,
"@"
,
"["
,
"[["
,
"any"
,
"dim"
,
"dimnames"
,
"rownames"
,
"colnames"
,
"is.null"
,
"list"
,
"names"
,
"return"
,
"print"
,
"length"
,
"rep"
,
"min"
,
"max"
,
"matrix"
,
"table"
,
"is.array"
,
"is.element"
,
"is.character"
,
"exp"
,
"all"
,
"pmin"
,
"pmax"
,
"as.numeric"
,
"proc.time"
,
"as.integer"
,
"as.character"
,
"as.matrix"
,
".Call"
,
"sum"
,
"order"
,
"rev"
,
"integer"
,
"double"
,
"as.numeric"
,
"as.list"
,
"as.integer"
,
".Call"
,
"unname"
,
"log"
,
"lgamma"
));
private
EvaluatedArgumentsVisitor
()
{
// private constructor
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment