This project has moved and is read-only. For the latest updates, please go here.
1
Vote

Freetext literal

description

Hi,

I define FreeText literal for this script "SELECT * FROM dbo.Person WHERE Country.City.Id = ?". I tried to get "Country.City.Id" word. works ok. but Every token marks mirror. I mean WHERE looks mirror.
        var mirror = new FreeTextLiteral("mirror", FreeTextOptions.AllowEof, " ");
        mirror.SetFlag(TermFlags.IsNonGrammar);

        Id.Rule =  MakePlusRule(Id, dot, mirror)
is there any way to fix this.

comments

rivantsov wrote Jun 6, 2016 at 10:29 PM

remove
mirror.SetFlag(....)
this causes this terminal to catch everything
but I am not sure FreeTextLiteral is appropriate here.

oturkan wrote Jun 7, 2016 at 9:02 PM

Thank you for replay. I changed IdentifierTerminal with prefix works perfect.