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
e31b1b62
Commit
e31b1b62
authored
13 years ago
by
Adam Wardynski
Browse files
Options
Downloads
Patches
Plain Diff
Some comment fixing.
parent
5eb5a56e
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libwccl/parser/grammar.g
+19
-14
19 additions, 14 deletions
libwccl/parser/grammar.g
with
19 additions
and
14 deletions
libwccl/parser/grammar.g
+
19
−
14
View file @
e31b1b62
...
...
@@ -276,7 +276,7 @@ parse_match_rule
///////////////////////////////////////////////////////////////////////////////
// ----------------------------------------------------------------------------
// Single or muliple (comma separated) elements in string set, may be:
// Single or mul
t
iple (comma separated) elements in string set, may be:
// 'a' "a" [] ['a'] ['a', 'b'] ["a"] ["a", "b"] ['a', "b"]
// Parsing strset literal and returning plain strset value.
// Returns boost::shared_ptr<StrSet>
...
...
@@ -301,7 +301,7 @@ strset_literal
)?
RBRACKET
;
// String set value as const
r
ant string set:
// String set value as
a
constant string set:
// Returns boost::shared_ptr<Constant<StrSet> >
strset_value
returns [boost::shared_ptr<Constant<StrSet> > val]
...
...
@@ -314,8 +314,8 @@ strset_value
;
// ----------------------------------------------------------------------------
// Element of sym set. This rule
,
inserts element into symbol set
//
with
corresponding tagset.
// Element of sym set. This rule inserts element into symbol set
//
using
corresponding tagset.
// WARNING! This rule can throw ParserException! Be careful!
symset_elem
[const Corpus2::Tagset& tagset, boost::shared_ptr<TSet>& t_set]
...
...
@@ -552,8 +552,9 @@ position_variable
// ----------------------------------------------------------------------------
// String set, $s:name
// This expression gets (however, before put into) variable of the type StrSet
// from scope -- variables.
// This expression gets variable of StrSet type from the scope's Variables.
// Creates one first if it's not yet there.
//
// Returns boost::shared_ptr<VariableAccessor<StrSet> >
strset_variable_acc
[Variables& vars]
...
...
@@ -583,7 +584,9 @@ strset_variable
// ----------------------------------------------------------------------------
// Symbol set: $t:name
// Get symset variable (however, before put into) from variables
// This expression gets variable of TSet type from the scope's Variables.
// Creates one first if it's not there yet.
//
// Returns boost::shared_ptr<VariableAccessor<TSet> >
symset_variable_acc
[Variables& vars]
...
...
@@ -613,7 +616,8 @@ symset_variable
// ----------------------------------------------------------------------------
// Bool: $b:name
// Get bool variable (however, before put into) from variables
// This expression gets variable of Bool type from the scope's Variables.
// Creates one first if it's not there yet.
// Returns boost::shared_ptr<VariableAccessor<Bool> >
bool_variable_acc
[Variables& vars]
...
...
@@ -643,7 +647,8 @@ bool_variable
// ----------------------------------------------------------------------------
// Match: $m:name
// Get mach vector variable from variavles (before put into variables)
// This expression gets variable of Match type from the scope's Variables.
// Creates one first if it's not there yet.
// Returns boost::shared_ptr<VariableAccessor<Match> >
match_vector_variable_acc
[Variables& vars]
...
...
@@ -658,7 +663,7 @@ match_vector_variable_acc
}
;
// Vargetter for the match vector varia
v
le. Wrapper for match_vector_variable_acc
// Vargetter for the match vector varia
b
le. Wrapper for match_vector_variable_acc
// Returns boost::shared_ptr<VarGetter<Match> >
match_vector_variable
[Variables& vars]
...
...
@@ -917,7 +922,7 @@ position_last_token [const Corpus2::Tagset& tagset, Variables& vars]
;
///////////////////////////////////////////////////////////////////////////////
// St
i
ring operator
// String operator
// Returns boost::shared_ptr<Function<StrSet> >
///////////////////////////////////////////////////////////////////////////////
strset_operator [const Corpus2::Tagset& tagset, Variables& vars]
...
...
@@ -1002,7 +1007,7 @@ strset_affix
;
// ----------------------------------------------------------------------------
//
W
rapper
o
fr strset value and strset variable
//
A w
rapper f
o
r strset value and strset variable
strset_var_val
[const Corpus2::Tagset& /*tagset*/, Variables& vars]
returns [boost::shared_ptr<Function<StrSet> > op]
...
...
@@ -1041,7 +1046,7 @@ strset_condition
;
///////////////////////////////////////////////////////////////////////////////
// Boo
o
l operator
// Bool operator
// Returns boost::shared_ptr<Function<Bool> >
///////////////////////////////////////////////////////////////////////////////
bool_operator
...
...
@@ -1755,7 +1760,7 @@ match_operator
}
| LPAREN ret = match_operator [tagset, vars] RPAREN
)
( // if there's a
n arrow
after the match, we have a submatch reference
( // if there's a
colon
after the match, we have a submatch reference
COLON i: UNSIGNED_INT { ret.reset(new Submatch(ret, token_ref_to_int(i))); }
)*
;
...
...
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