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
1923cc70
Commit
1923cc70
authored
13 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
add missing getter impl in wcclfile, fix wccl-rules
parent
a8e745f5
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libwccl/wcclfile.cpp
+8
-0
8 additions, 0 deletions
libwccl/wcclfile.cpp
wccl-apps/wccl-rules.cpp
+1
-3
1 addition, 3 deletions
wccl-apps/wccl-rules.cpp
with
9 additions
and
3 deletions
libwccl/wcclfile.cpp
+
8
−
0
View file @
1923cc70
...
...
@@ -36,6 +36,14 @@ boost::shared_ptr<const TagRuleSequence> WcclFile::get_tag_rules_ptr() const
return
tag_rules_
;
}
boost
::
shared_ptr
<
MatchRuleSequence
>
WcclFile
::
get_match_rules_ptr
()
{
if
(
!
has_match_rules
())
{
throw
WcclError
(
"There are no match rules."
);
}
return
match_rules_
;
}
boost
::
shared_ptr
<
const
MatchRuleSequence
>
WcclFile
::
get_match_rules_ptr
()
const
{
if
(
!
has_match_rules
())
{
...
...
This diff is collapsed.
Click to expand it.
wccl-apps/wccl-rules.cpp
+
1
−
3
View file @
1923cc70
...
...
@@ -125,9 +125,7 @@ void RuleRunner::apply_rules(boost::shared_ptr<Corpus2::TokenReader> reader,
}
else
{
f
->
get_tag_rules_ptr
()
->
execute_until_done
(
as
,
tag_rule_iterations_
);
}
foreach
(
const
boost
::
shared_ptr
<
Wccl
::
MatchRule
>&
mr
,
f
->
get_match_rules
())
{
mr
->
apply
(
as
);
}
f
->
get_match_rules_ptr
()
->
apply_all
(
as
);
}
timer
.
count_sentence
(
*
as
);
...
...
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