Re: My baby text to HTML paragraph converter

2023-12-18 Thread r0ller
Hi All,My two cents to this is that bison can be used with C++ as well :) See:https://www.gnu.org/software/bison/manual/bison.html#A-Simple-C_002b_002b-ExampleBR,r0ller Eredeti levél Feladó: Aryeh Friedman Dátum: 2023 december 17 00:39:13Tárgy: Re: My baby text to HTML paragraph

bison for nlp

2018-11-06 Thread r0ller
d, besides the online demo there's also an android one on the project page (which is available in the play store too). Check it out at:  https://github.com/r0ller/alice/wiki#platform-and-use-case-examples As I mentioned the whole stuff is open source and free so please, don't take this a

Re: bison for nlp

2018-11-07 Thread r0ller
Hi Akim, The file hi_nongen.y is just left there as the last version that I wrote manually:) If you check out any other hi.y files in the platform specific directories (e.g. the one for the online demo is https://github.com/r0ller/alice/blob/master/hi_js/hi.y but you can have a look in

Re: bison for nlp

2018-11-08 Thread r0ller
Hi Hans, Sorry, I don't really get it:( What do you mean by replacing tokens by strings? How can that be done? Best regards, r0ller Eredeti levél Feladó: Hans Åberg < haber...@telia.com (Link -> mailto:haber...@telia.com) > Dátum: 2018 november 8 14:28:03 Tárgy:

Re: bison for nlp

2018-11-08 Thread r0ller
as a string I guess, right? Best regards, r0ller Eredeti levél Feladó: Hans Åberg < haber...@telia.com (Link -> mailto:haber...@telia.com) > Dátum: 2018 november 8 21:25:03 Tárgy: Re: bison for nlp Címzett: r0ller < r0l...@freemail.hu (Link -> mailto:r0l...@freemai

Re: bison for nlp

2018-11-12 Thread r0ller
, what I mentioned is simply that I read somewhere an article in 2010 when I started the project which made that statement and I didn't even validate it. But now I'm pretty curious about its c++ features so I'll definitely go through the documentation you sent and try

Re: bison for nlp

2018-11-19 Thread r0ller
a C parser but I manually modified and played around with it till I got it working. Thanks for any hints! Best regards, r0ller Eredeti levél Feladó: r0ller < r0l...@freemail.hu (Link -> mailto:r0l...@freemail.hu) > Dátum: 2018 november 12 11:43:47 Tárgy: Re: bison f

Re: bison for nlp

2018-11-21 Thread r0ller
offline via voice control having a bison parser running under the hood:) Best regards, r0ller   Eredeti levél Feladó: Akim Demaille < a...@lrde.epita.fr (Link -> mailto:a...@lrde.epita.fr) > Dátum: 2018 november 20 20:19:50 Tárgy: Re: bison for nlp Címzett: r0ller < r0l

Re: bison for nlp

2018-11-27 Thread r0ller
rom a grammar. I'm currently using nltk to test what my bison generated parser would accept:  http://www.nltk.org/howto/generate.html Or are you aware of any such c/c++ tool? Best regards, r0ller   Eredeti levél Feladó: Akim Demaille < a...@lrde.epita.fr (Link -> mailto:a.

Re: bison for nlp

2018-11-27 Thread r0ller
Hi Akim, Ok, thanks anyway:) Best regards, r0ller   Eredeti levél Feladó: Akim Demaille < a...@lrde.epita.fr (Link -> mailto:a...@lrde.epita.fr) > Dátum: 2018 november 27 20:32:24 Tárgy: Re: bison for nlp Címzett: r0ller < r0l...@freemail.hu (Link -> mailto:r0l

mapping token identifier to value

2018-12-14 Thread r0ller
quot;t_Con", yy::parser::token::t_Con },             ...     }; and could then get the values simply by: symbol2token.find("t_Con")->second; However, still wanted to ask if there's any better solution maybe one that I overlooked and is provided b

Re: mapping token identifier to value

2018-12-17 Thread r0ller
Hi Akim, Ok, thanks for the feedback! I haven't found any better either so I implemented it and it seems to work but need to test it thoroughfully. Fortunately, as the mapping is generated as well, it's not tedious at all:) Best regards, r0ller Eredeti levél Fe

how to guide to use bison for nlp

2019-04-30 Thread r0ller
7;m just trying to fill in the gaps. It's really the first step, many examples and explanations are missing but by following up the guide step by step, you'll end up having an interpreter (capable of interpreting some simple sentence) based on bison:D https://github.com/r0ller/alice

how to get left hand side symbol in action

2019-05-06 Thread r0ller
Hi All, Is it possible in *any* way to get the left hand side symbol in an action of a rule? Say, I have: A : B C {     std:cout<<"left hand side symbol is:"

Re: how to get left hand side symbol in action

2019-05-06 Thread r0ller
Yes, correct: I'd need the non terminal symbol itself. Best regards, r0ller Eredeti levél Feladó: Uxio Prego < uxio.pr...@gmail.com (Link -> mailto:uxio.pr...@gmail.com) > Dátum: 2019 május 6 14:30:10 Tárgy: Re: how to get left hand side symbol in action Cím

Re: how to get left hand side symbol in action

2019-05-06 Thread r0ller
Hi Hans, Works like a charm! Thanks! Best regards, r0ller Eredeti levél Feladó: Hans Åberg < haber...@telia.com (Link -> mailto:haber...@telia.com) > Dátum: 2019 május 6 14:50:48 Tárgy: Re: how to get left hand side symbol in action Címzett: r0ller < r0l...@freem

Re: how to get left hand side symbol in action

2019-05-06 Thread r0ller
hardcoded logger::singleton()==NULL?(void)0:logger::singleton()->log(0,parent_symbol+"->"+main_node.symbol+" "+dependent_node.symbol); $$=sparser->combine_nodes(parent_symbol,main_node,dependent_node); } These examples you can find in the tech guide towards the end o

Re: how to get left hand side symbol in action

2019-05-09 Thread r0ller
Well, I can only agree:) Eredeti levél Feladó: Christian Schoenebeck < schoeneb...@crudebyte.com (Link -> mailto:schoeneb...@crudebyte.com) > Dátum: 2019 május 9 13:23:13 Tárgy: Re: how to get left hand side symbol in action Címzett: help-bison@gnu.org (Link -> mailto:help-bison

Re: how to get left hand side symbol in action

2019-05-10 Thread r0ller
to use the framework) and thought about how I could make it more convenient. So I googled and finally asked the question here as I haven't found anything. The rest of the story you know:) Best regards, r0ller Eredeti levél Feladó: Akim Demaille < a...@lrde.epita.fr (Link

custom error reporting with c++

2025-01-08 Thread r0ller
#x27; then I get an error like there's no type named yypcontext_t and indeed if I search for that type in the generated parser source, I can't find it. If I use '%language "c"' then that type appears in the generated parser source. Does anyone have any hint on this?Thanks in advance,r0ller

Re: custom error reporting with c++

2025-01-09 Thread r0ller
Hi Christian,You're right. That's an embarrassing mistake from me. Sorry for the noise. I should have read this one instead: https://www.gnu.org/software/bison/manual/html_node/C_002b_002b-Parser-Context.htmlBest regards,r0ller Eredeti levél Feladó: Christian Schoeneb

YYRECOVERING() in yylex function

2025-03-12 Thread r0ller
detect recovering status).Best regards,r0ller

Re: YYRECOVERING() in yylex function

2025-03-12 Thread r0ller
I get a compile time error since YYRECOVERING() may have been designed to be used only in actions. I hope I could sum up clearly what I'm doing. Nevertheless, I'll try to make a minimal example.Best regards,r0ller Eredeti levél Feladó: Nathanael Bracy Dátum: 2025 már

Re: YYRECOVERING() in yylex function

2025-03-14 Thread r0ller
made using YYRECOVERING in yylex superfluous. So issue solved :)Best regards,r0ller Eredeti levél ----Feladó: r0ller Dátum: 2025 március 12 21:54:11Tárgy: Re: YYRECOVERING() in yylex functionCímzett: Nathanael Bracy Hi Nathanael,Unfortunately the project is quite big but I want to make