librelist archives

« back to archive

Re: 'parse-param' option

Re: 'parse-param' option

From:
Yossi Ozani
Date:
2013-01-24 @ 07:41
> Hi....
>
>
>
> First of all, I want to say that this project is amazing!!!
>
> I an newbie to Jison, but I already clone it from git yesterday and
> started to play with it, and I was shocked how easy it is to write parser
> with Jison.
>
> I have very basic experience with Bison, but dude, the work you did is
> intuitive to use.
>
>
>
> I have a short question. is there an option like '%parse-param{<addition
> param>}' in bison, that can change the signature of the generated parse()
> method of the parser,
>
> So it could have additional parameters.
>
> I mean, when I create the parser using Jison, it creates the parser method
> parse(<TEXT TO PARSE>);
>
> It was nice if I could define additional parameter to parse method so it
> would be parse(<TEXT TO PARSE>,<ADDITION PARAM>);
>
>
>
> Keep on doing amazing stuff.
>
>
>
> Thx.
>
> Yossi
>
>
>
>
>

Re: [jison] Re: 'parse-param' option

From:
Robert Plummer
Date:
2013-01-24 @ 12:32
Ditto.  Jison (yacc flex bison) is my new favorite language!
On Jan 24, 2013 2:42 AM, "Yossi Ozani" <yossiozani@gmail.com> wrote:

>
> Hi....
>>
>>
>>
>> First of all, I want to say that this project is amazing!!!
>>
>> I an newbie to Jison, but I already clone it from git yesterday and
>> started to play with it, and I was shocked how easy it is to write parser
>> with Jison.
>>
>> I have very basic experience with Bison, but dude, the work you did is
>> intuitive to use.
>>
>>
>>
>> I have a short question. is there an option like '%parse-param{<addition
>> param>}' in bison, that can change the signature of the generated parse()
>> method of the parser,
>>
>> So it could have additional parameters.
>>
>> I mean, when I create the parser using Jison, it creates the parser
>> method parse(<TEXT TO PARSE>);
>>
>> It was nice if I could define additional parameter to parse method so it
>> would be parse(<TEXT TO PARSE>,<ADDITION PARAM>);
>>
>>
>>
>> Keep on doing amazing stuff.
>>
>>
>>
>> Thx.
>>
>> Yossi
>>
>>
>>
>>
>>
>
>