Skip to content
Snippets Groups Projects
Commit 90d9e367 authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Merge branch 'master' of nlp.pwr.wroc.pl:wccl

parents 6b1a78ff 7be4a56f
Branches
No related merge requests found
......@@ -205,15 +205,8 @@ sym_set_elem
throw(ParserException(e.info()));
}
}
| G_MARK s2: SYMBOL G_MARK {
try {
t_set->insert_symbol(tagset, token_ref_to_std_string(s2));
}
catch(Corpus2::TagParseError &e) {
throw(ParserException(e.info()));
}
}
;
// sym set literal
// {} {sym_set_elem} {sym_set_elem, ..., sym_set_elem}
// Returns boost::shared_ptr<Wccl::TSet>
......@@ -829,7 +822,7 @@ lpred_regex
boost::shared_ptr<Wccl::Function<Wccl::StrSet> > expr;
}
: "regex" LPAREN expr = string_operators [tagset, vars] COMMA reg: STRING RPAREN {
op.reset(new Wccl::Regex(expr, token_ref_to_ustring(reg)));
op.reset(new Wccl::Regex(expr, str_token_ref_to_ustring(reg)));
}
;
......@@ -940,14 +933,6 @@ options {
: '!'
;
G_MARK
options {
paraphrase = "Gravis mark";
testLiterals = true;
}
: '`'
;
STR_PREFIX
options {
paraphrase = "String prefix";
......@@ -1049,6 +1034,7 @@ options {
testLiterals = true;
}
: ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*
| '`' ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')* '`'
;
WS
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment