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
c372644c
There was a problem fetching the pipeline summary.
Commit
c372644c
authored
7 years ago
by
Jan Trávníček
Browse files
Options
Downloads
Patches
Plain Diff
syntax to discard the command result
parent
dc2e52da
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
alib2cli/src/command/HelpCommand.h
+1
-0
1 addition, 0 deletions
alib2cli/src/command/HelpCommand.h
alib2cli/src/parser/Parser.cpp
+3
-1
3 additions, 1 deletion
alib2cli/src/parser/Parser.cpp
with
4 additions
and
1 deletion
alib2cli/src/command/HelpCommand.h
+
1
−
0
View file @
c372644c
...
@@ -46,6 +46,7 @@ public:
...
@@ -46,6 +46,7 @@ public:
std::cout << ">identifier - value to xml file (ResultImmediateFileStatement)" << std::endl;
std::cout << ">identifier - value to xml file (ResultImmediateFileStatement)" << std::endl;
std::cout << ">:identifier - value to xml file with name from environment (ResultBindedFileStatement)" << std::endl;
std::cout << ">:identifier - value to xml file with name from environment (ResultBindedFileStatement)" << std::endl;
std::cout << ">$identifier - value to variable s (ResultVariableStatement)" << std::endl;
std::cout << ">$identifier - value to variable s (ResultVariableStatement)" << std::endl;
std::cout << "> - value is discarded" << std::endl;
std::cout << " - nothing specified prints to stdout (ResultPrintStatement)" << std::endl;
std::cout << " - nothing specified prints to stdout (ResultPrintStatement)" << std::endl;
} else if ( m_command == "" ) {
} else if ( m_command == "" ) {
std::cout << "Simple help for the query language" << std::endl;
std::cout << "Simple help for the query language" << std::endl;
...
...
This diff is collapsed.
Click to expand it.
alib2cli/src/parser/Parser.cpp
+
3
−
1
View file @
c372644c
...
@@ -151,9 +151,11 @@ void Parser::out_redirect ( std::shared_ptr < StatementList > & list ) {
...
@@ -151,9 +151,11 @@ void Parser::out_redirect ( std::shared_ptr < StatementList > & list ) {
std
::
string
name
=
getTokenValue
(
);
std
::
string
name
=
getTokenValue
(
);
match
(
cli
::
Lexer
::
TokenType
::
INTEGER
,
cli
::
Lexer
::
TokenType
::
IDENTIFIER
);
match
(
cli
::
Lexer
::
TokenType
::
INTEGER
,
cli
::
Lexer
::
TokenType
::
IDENTIFIER
);
list
->
append
(
std
::
make_unique
<
ResultVariableStatement
>
(
std
::
move
(
name
)
)
);
list
->
append
(
std
::
make_unique
<
ResultVariableStatement
>
(
std
::
move
(
name
)
)
);
}
else
{
}
else
if
(
check
(
cli
::
Lexer
::
TokenType
::
IDENTIFIER
)
)
{
std
::
string
filename
=
matchIdentifier
(
);
std
::
string
filename
=
matchIdentifier
(
);
list
->
append
(
std
::
make_unique
<
ResultImmediateFileStatement
>
(
std
::
move
(
filename
)
)
);
list
->
append
(
std
::
make_unique
<
ResultImmediateFileStatement
>
(
std
::
move
(
filename
)
)
);
}
else
{
return
;
}
}
}
}
...
...
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