From 6377c41de0841ea9ccf10c5d8a2475b937ab96c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <pawel.kedzia@pwr.wroc.pl> Date: Wed, 1 Dec 2010 13:34:48 +0100 Subject: [PATCH] Added rule for base operator --- libwccl/parser/grammar.g | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libwccl/parser/grammar.g b/libwccl/parser/grammar.g index d53ddd4..3fe3115 100644 --- a/libwccl/parser/grammar.g +++ b/libwccl/parser/grammar.g @@ -31,6 +31,7 @@ header { #include <libwccl/ops/functions/strset/getorth.h> #include <libwccl/ops/functions/strset/toupper.h> #include <libwccl/ops/functions/strset/tolower.h> + #include <libwccl/ops/functions/strset/getlemmas.h> #include <libwccl/ops/functions/constant.h> #include <libwccl/ops/functions/vargetter.h> @@ -622,13 +623,13 @@ strset_orth // ---------------------------------------------------------------------------- // Base operator. strset_base - [const Corpus2::Tagset& /*tagset*/, Variables& vars] + [const Corpus2::Tagset& tagset, Variables& vars] returns [boost::shared_ptr<Function<StrSet> > ret] { - boost::shared_ptr<VarGetter<Position> > pos; + boost::shared_ptr<Function<Position> > pos; } - : "base" LBRACKET pos = position_variable [vars] RBRACKET { - // ret = TODO + : "base" LBRACKET pos = position_operator [tagset, vars] RBRACKET { + ret.reset(new GetLemmas(pos)); } ; -- GitLab