List:Internals« Previous MessageNext Message »
From:Shaukat Mahmood Ahmad Date:November 30 2012 3:02pm
Subject:Re: question about UDF
View as plain text  
One little explanation: you cant  introduce new keywords by simply
adding them to sql/lex.h, you will have to write grammar for new
reserve words / commands, and then will have to regenerate sql parser
using gnu bison ( that is a parser generator tool).

Regards,
Shaukat Mahmood Ahmad

On Fri, Nov 30, 2012 at 7:48 PM, Shaukat Mahmood Ahmad <write@stripped> wrote:
> One little explanation: you cant  introduce new keywords by simply adding
> them to sql/lex.h, you will have to write grammar for new reserve words /
> commands, and then will have to regenerate sql parser  using gnu bison (
> that is a parser generator tool).
>
> Regards,
> Shaukat Mahmood Ahmad
>
>
> On Fri, Nov 30, 2012 at 12:13 PM, Michael Widenius <monty@stripped>
> wrote:
>>
>>
>> Hi!
>>
>> >>>>> "Zhixuan" == Zhixuan Zhu <zhuzhixuan@stripped>
> writes:
>>
>> Zhixuan> Hi,
>> Zhixuan> I have two questions:
>>
>> Zhixuan> 1. Is there a way that I can add customized reserved words to
>> mysql?
>>
>> Yes, by adding them to sql/lex.h
>>
>>
>> Zhixuan> 2. Is it possible that I can use the customized reserve words in
>> my udf
>> Zhixuan> function?
>>
>> No. You would get a syntax error when using the reserved word as the
>> parser would not know what to do with the word.
>>
>> Regards,
>> Monty
>> Creator of MySQL and MariaDB
>>
>>
>> --
>> MySQL Internals Mailing List
>> For list archives: http://lists.mysql.com/internals
>> To unsubscribe:    http://lists.mysql.com/internals
>>
>
Thread
question about UDFZhixuan Zhu29 Nov
  • re: question about UDFMichael Widenius30 Nov
Re: question about UDFShaukat Mahmood Ahmad30 Nov