Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
28bb7435
Commit
28bb7435
authored
14 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
fix Parser::parseAnyOperator silently ignoring errors
parent
31b917fa
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libwccl/parser/Parser.cpp
+9
-3
9 additions, 3 deletions
libwccl/parser/Parser.cpp
with
9 additions
and
3 deletions
libwccl/parser/Parser.cpp
+
9
−
3
View file @
28bb7435
...
...
@@ -135,11 +135,11 @@ boost::shared_ptr<ANTLRParserResultBase> Parser::parseAnyOperator(
boost
::
shared_ptr
<
ANTLRParserResultBase
>
Parser
::
parseAnyOperator
(
std
::
istream
&
istr
)
const
{
ANTLRLexer
lexer
(
istr
);
ANTLRParser
parser
(
lexer
);
boost
::
shared_ptr
<
ANTLRParserResultBase
>
result
;
if
(
!
result
)
{
istr
.
seekg
(
0
,
std
::
ios
::
beg
);
ANTLRLexer
lexer
(
istr
);
ANTLRParser
parser
(
lexer
);
try
{
result
=
parser
.
parse_sym_set_operator
(
this
->
tagset
);
}
catch
(
antlr
::
ANTLRException
)
{
...
...
@@ -147,6 +147,9 @@ boost::shared_ptr<ANTLRParserResultBase> Parser::parseAnyOperator(
}
}
if
(
!
result
)
{
istr
.
seekg
(
0
,
std
::
ios
::
beg
);
ANTLRLexer
lexer
(
istr
);
ANTLRParser
parser
(
lexer
);
try
{
result
=
parser
.
parse_string_operator
(
this
->
tagset
);
}
catch
(
antlr
::
ANTLRException
)
{
...
...
@@ -154,6 +157,9 @@ boost::shared_ptr<ANTLRParserResultBase> Parser::parseAnyOperator(
}
}
if
(
!
result
)
{
istr
.
seekg
(
0
,
std
::
ios
::
beg
);
ANTLRLexer
lexer
(
istr
);
ANTLRParser
parser
(
lexer
);
try
{
result
=
parser
.
parse_predicates
(
this
->
tagset
);
}
catch
(
antlr
::
ANTLRException
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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