[Parrot-users] Compiler tools and case insensitive grammar
Fredrik Rothamel
fredrik.rothamel at bahnhof.se
Fri Sep 3 11:39:45 UTC 2010
Hi,
I have tried inserting :i or :ignorecase modifiers as suggested by the
docs but either get compilation errors or no noticeable effect.
Are modifiers implemented in PGE and NQP ?
BR,
Fredrik
kjstol skrev 2010-09-02 15:59:
> hi Fredrik,
>
> I think it's mk_language_shell.pl that's provided in tools/dev/ directory.
>
> as for case-insensitivity; I think there's a switch of some sorts that
> indicates that you don't care about case. (my guess..) perhaps check
> out the synopsis on grammars/rules.
> http://en.wikipedia.org/wiki/Perl_6_rules suggests the :i modifier.
>
> HTH,
> kjs
>
>
>
> On Wed, Sep 1, 2010 at 1:03 PM, Fredrik Rothamel
> <fredrik.rothamel at bahnhof.se> wrote:
>> Hi all,
>>
>> I'm implementing a simple language for parrot to learn more about compilers
>> and have som questions about the tools.
>>
>> What is the recommended starting point (on cygwin parrot 2.6.0)?
>> mk_language_shell.pl or create_language.pl ?
>>
>> I want keywords and identifiers to be case-insensitive.
>> How do I implement this in the grammar file?
>> None of my experiments with the ignorcase modifier seems to work.
>> Is there a way to run "tolower" on the input string before matching or
>> something similar?
>>
>>
>> Best Regards,
>>
>> Fredrik
>> _______________________________________________
>> Parrot-users mailing list
>> Parrot-users at lists.parrot.org
>> http://lists.parrot.org/mailman/listinfo/parrot-users
>>
More information about the Parrot-users
mailing list