Skip to content
Snippets Groups Projects
Commit 7be4a56f authored by Adam Radziszewski's avatar Adam Radziszewski
Browse files

pushed backquotes to the lexer

parent 769864bf
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