Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Algorithms Library Toolkit Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Algorithms Library Toolkit
Algorithms Library Toolkit Core
Commits
cf1438ed
Commit
cf1438ed
authored
7 years ago
by
Jan Trávníček
Browse files
Options
Downloads
Patches
Plain Diff
rename ImmediateParam to ImmediateValueParam
parent
cb0ebffc
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
alib2cli/src/ast/params/ImmediateValueParam.h
+5
-5
5 additions, 5 deletions
alib2cli/src/ast/params/ImmediateValueParam.h
alib2cli/src/parser/Parser.cpp
+3
-3
3 additions, 3 deletions
alib2cli/src/parser/Parser.cpp
with
8 additions
and
8 deletions
alib2cli/src/ast/params/ImmediateParam.h
→
alib2cli/src/ast/params/Immediate
Value
Param.h
+
5
−
5
View file @
cf1438ed
#ifndef _IMMEDIATE_PARAM_H_
#define _IMMEDIATE_PARAM_H_
#ifndef _IMMEDIATE_
VALUE_
PARAM_H_
#define _IMMEDIATE_
VALUE_
PARAM_H_
#include <ast/Param.h>
#include <abstraction/ImmediateValueAbstraction.hpp>
...
...
@@ -7,11 +7,11 @@
namespace cli {
template < class Type >
class ImmediateParam : public Param {
class Immediate
Value
Param : public Param {
Type m_data;
public:
ImmediateParam ( Type value ) : m_data ( value ) {
Immediate
Value
Param ( Type value ) : m_data ( value ) {
}
virtual std::shared_ptr < abstraction::OperationAbstraction > translateAndEval ( const std::shared_ptr < abstraction::OperationAbstraction > &, Environment & ) const override {
...
...
@@ -22,4 +22,4 @@ public:
} /* namespace cli */
#endif /* _IMMEDIATE_PARAM_H_ */
#endif /* _IMMEDIATE_
VALUE_
PARAM_H_ */
This diff is collapsed.
Click to expand it.
alib2cli/src/parser/Parser.cpp
+
3
−
3
View file @
cf1438ed
...
...
@@ -12,7 +12,7 @@
#include
<ast/params/ImmediateFileParam.h>
#include
<ast/params/BindedFileParam.h>
#include
<ast/params/PreviousResultParam.h>
#include
<ast/params/ImmediateParam.h>
#include
<ast/params/Immediate
Value
Param.h>
#include
<ast/params/BindedValueParam.h>
#include
<ast/params/BindedVariableParam.h>
#include
<ast/params/CastParam.h>
...
...
@@ -52,10 +52,10 @@ std::unique_ptr < Param > Parser::param ( ) {
return
in_redirect_param
(
);
}
else
if
(
check
(
cli
::
Lexer
::
TokenType
::
IDENTIFIER
)
)
{
std
::
string
value
=
matchIdentifier
(
);
return
std
::
make_unique
<
ImmediateParam
<
std
::
string
>
>
(
value
);
return
std
::
make_unique
<
Immediate
Value
Param
<
std
::
string
>
>
(
value
);
}
else
if
(
check
(
cli
::
Lexer
::
TokenType
::
INTEGER
)
)
{
int
value
=
matchInteger
(
);
return
std
::
make_unique
<
ImmediateParam
<
int
>
>
(
value
);
return
std
::
make_unique
<
Immediate
Value
Param
<
int
>
>
(
value
);
}
else
if
(
check
(
cli
::
Lexer
::
TokenType
::
LEFT_PAREN
)
)
{
match
(
cli
::
Lexer
::
TokenType
::
LEFT_PAREN
);
std
::
string
type
=
matchIdentifier
(
);
...
...
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