[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Grammatica-users] Case insensitive Grammar
From: |
Leszek Doniec |
Subject: |
Re: [Grammatica-users] Case insensitive Grammar |
Date: |
Tue, 22 Jan 2008 10:43:25 +0100 |
OK, but now in the tokens section you have probably defined something like this:
TOT_COUNT = "TOT_COUNT"
Use regular _expression_ in this case:
TOT_COUNT = << HERE PUT CORRECT REGULAR _expression_ FOR CASE INSENSITIVE TOT_COUNT >>
Cheers,
L
2008/1/22, paskal sanil <address@hidden>:
Hi,
Thanks for your fast reply. But my question is
Fore example i have a formula:
TOT_COUNT('ns1').
The corresponding grammar is :
FctA = FctB "(" QUOTE TOPO_TEXT QUOTE ")" ;
FctB = TOT_COUNT ;
Is there a way we can ignore the "Case sensitvity" for only certain
tokens while comparing against the grammar?
ie; Here in the above case the token "TOT_COUNT" can be any "case"
while 'ns1' (that appears in single quote - TOPO_TEXT) should strictly
follow the grammar.
I have many token like FctB which needs exact match and hence i can't
go for Regular _expression_.
Can i define something like :
FctB = TOT_COUNT CASESENSITIVE = "no" ;
regards
paskal
On 1/22/08, Leszek Doniec <address@hidden> wrote:
> I would try to define tokens as case insensitive regular expressions.
> Leszek
>
> 2008/1/22, paskal sanil <address@hidden>:
> >
> > Hi,
> >
> > I read about the case-insensitive parsing in Grammatica by including
> >
> > CASESENSITIVE = "no"
> >
> > Could you please tell me, how can i apply this on only few tokens.
> > Could you give me a small example too.
> >
> > regards,
> > paskal sanil
> >
> >
> > _______________________________________________
> > Grammatica-users mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/grammatica-users
> >
>
_______________________________________________
Grammatica-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/grammatica-users