Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coenen, Joachim
Frida
Commits
c5576612
Commit
c5576612
authored
9 years ago
by
Wuttke, Joachim
Committed by
Wuttke, Joachim
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
2066e064
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pub/lib/node.hpp
+27
-27
27 additions, 27 deletions
pub/lib/node.hpp
pub/lib/xax_yacc.ypp
+2
-2
2 additions, 2 deletions
pub/lib/xax_yacc.ypp
with
29 additions
and
29 deletions
pub/lib/node.hpp
+
27
−
27
View file @
c5576612
...
...
@@ -148,33 +148,6 @@ class CNodeVal: public CNode {
};
//! Indexed variable node.
class
CNodeIva
:
public
CNode
{
private:
RVar
var
;
RRef
ref
;
void
npar_exec
(
int
*
np
)
const
;
public:
CNodeIva
(
RVar
_var
,
RRef
_ref
=
RRef
(
new
CRef
()
)
)
:
var
(
_var
),
ref
(
_ref
)
{}
const
RObj
tree_val
(
const
CContext
&
ctx
)
const
;
void
kdep_exec
(
bool
*
kd
)
const
{
*
kd
=
true
;
}
void
set_coord
(
CCoord
&
ret
,
int
k
)
const
;
string
tree_info
()
const
;
};
//! Indexed variable node.
class
CNodeSessionNK
:
public
CNode
{
public:
const
RObj
tree_val
(
const
CContext
&
ctx
)
const
;
void
kdep_exec
(
bool
*
kd
)
const
{
*
kd
=
false
;
}
void
set_coord
(
CCoord
&
ret
,
int
k
)
const
{
ret
=
CCoord
(
"nk"
,
""
);
}
string
tree_info
()
const
{
return
"nk {number of online files}"
;
}
};
//! Index node base class.
class
CNodeIdx
:
public
CNode
{
...
...
@@ -213,6 +186,33 @@ class CNodeIdxK: public CNodeIdx {
};
//! Session-wide workspace information: NK = number of online files.
class
CNodeSessionNK
:
public
CNode
{
public:
const
RObj
tree_val
(
const
CContext
&
ctx
)
const
;
void
kdep_exec
(
bool
*
kd
)
const
{
*
kd
=
false
;
}
void
set_coord
(
CCoord
&
ret
,
int
k
)
const
{
ret
=
CCoord
(
"nk"
,
""
);
}
string
tree_info
()
const
{
return
"nk {number of online files}"
;
}
};
//! Indexed variable node.
class
CNodeIva
:
public
CNode
{
private:
RVar
var
;
RRef
ref
;
void
npar_exec
(
int
*
np
)
const
;
public:
CNodeIva
(
RVar
_var
,
RRef
_ref
=
RRef
(
new
CRef
()
)
)
:
var
(
_var
),
ref
(
_ref
)
{}
const
RObj
tree_val
(
const
CContext
&
ctx
)
const
;
void
kdep_exec
(
bool
*
kd
)
const
{
*
kd
=
true
;
}
void
set_coord
(
CCoord
&
ret
,
int
k
)
const
;
string
tree_info
()
const
;
};
//! Identifier node.
class
CNodeIdf
:
public
CNode
{
...
...
This diff is collapsed.
Click to expand it.
pub/lib/xax_yacc.ypp
+
2
−
2
View file @
c5576612
...
...
@@ -104,7 +104,7 @@ range:
exp: /* scalar expression */
VAL { $$.t = $1.t; }
| REF bra3
{ $$.t = RNode( new CNodeIva( $1.v, $2.r ) ); }
| REF bra3 { $$.t = RNode( new CNodeIva( $1.v, $2.r ) ); }
| IDF { $$.t = RNode( new CNodeIdf( (PCAST<const CObjStr>($1.o))->to_s() ) ); }
| DUMMY { $$.t = RNode( new CNodeDummy() ); }
| CEV bra2 '(' exp ')' { $$.t = RNode( new CNodeCev( $2.r, $4.t ) ); }
...
...
@@ -121,7 +121,7 @@ exp: /* scalar expression */
$$.t = RNode( new CNodeFun2( (const CFunc*) $1.p, $3.t, $5.t ) ); }
| FNCT '(' exp ',' exp ',' exp ')' {
$$.t = RNode( new CNodeFun3((const CFunc*) $1.p, $3.t, $5.t, $7.t) );}
| GENI bra2
{ $$.t = RNode( new CNodeGeni( (const CGeni*) $1.p, $2.r) ); }
| GENI bra2 { $$.t = RNode( new CNodeGeni( (const CGeni*) $1.p, $2.r) ); }
| GENI '(' exp ')' { $$.t = RNode( new CNodeGeni( (const CGeni*) $1.p, $3.t) ); }
| GENI '(' exp ',' exp ')' {
$$.t = RNode( new CNodeGeni( (const CGeni*) $1.p, $3.t, $5.t) ); }
...
...
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