same in
fmtgen/lex.o and fmtgen/parse.yacc.o. So have a look at `nm fmtgen/lex.o` to
see what name was given to xxxlex, and help parse.yacc.o find it.
Cheers!
On Mon, Jun 15, 2020 at 3:57 AM Aryeh Friedman
wrote:
>
>
> On Mon, Jun 15, 2020 at 12:49 AM Akim Demaille wrote:
>
>>
>> You should look for the place where the symbols have be renamed. It
>> might be outside of the grammar itself, in the build system. Have a
>> look at this bug report, and t
On Mon, Jun 15, 2020 at 12:49 AM Akim Demaille wrote:
>
> You should look for the place where the symbols have be renamed. It
> might be outside of the grammar itself, in the build system. Have a
> look at this bug report, and the answers.
>
> https://lists.gnu.org/r/bug-bison/2020-05/msg00093.
s with a link to the grammar, I might be easier for
us to help you.
> If I do nothing I get the following error in code that was added by bison
> when generating the parser (I can't find any reference to the string
> literals in the .y's I am attempting to update):
>
>
In attempting to update a previously working (pre-3.6) set of .y's I am now
getting an error that makes no sense to me (I am not the original author)
and all attempts to fix it fail.
If I do nothing I get the following error in code that was added by bison
when generating the parser (I can't find
dear devs ,
please help me for using flex with bison i didn't understand because there
is a lot of details there .
i am using "ubuntu 1804 LTS" operating system
so i read a lot of articles about this but still confusing ...
younes
The Free Software Foundation has changed the GNU Mailman settings on
this list. The short version is that any subject prefix or message
footer has been removed, allowing us to turn off DMARC from munging.
Any list administrator for this list is free to change these settings
back, instructions are b
Thanks for you help. Now i've typed in one of the first examples and it
throws me an strange error:
> flex01.l:99: premature EOF
The code looks like this:
%{
#include
#include
#include
enum {
LOOKUP = 0,
BOOL,
INT,
FLOAT,
STRING,
VEC2,
VEC3,
VEC4
P signed/encrypted mail preferred
https://www.thevertigo.com
signature.asc
Description: This is a digitally signed message part
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
the operation. This is not intended for file sys-
tem problems, which should use EX_NOINPUT or
EX_CANTCREAT, but rather for higher level permis-
sions.
I’ll see if I can reproduce and improve the error message.
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
see what we can do.
Cheers,
Akim
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
om
signature.asc
Description: This is a digitally signed message part
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
the
> emitted code in question.
That is in the Bison C++ mode.
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
On Mon, 2017-07-31 at 10:04 +0200, Hans Åberg wrote:
> As this is the list for Bison, you are not likely to get much help
> here. You may try the Usenet newsgroup comp.compilers.
Thanks Hans. I'll find another venue.
> It may have something to with that it it is abstract. Bison
As this is the list for Bison, you are not likely to get much help here. You
may try the Usenet newsgroup comp.compilers.
>warning: base class ‘class Meta__::Base’ should be explicitly
>initialized in the copy constructor [-Wextra]
>
> I can of course suppress this warning,
on: This is a digitally signed message part
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
a calc++ example in
the distribution which shows how to use locations for error reporting. The
typed one may have a problem with the variants, but perhaps that can be fixed
with std::variant of C++17, the latter which GCC supports, though there seems
to be no developer right now.
_
itally signed message part
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
ve you tried that?
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
nyone here
familiar with bisonc++(1)?
Yours truly,
--
Kip Warner | Senior Software Engineer
OpenPGP signed/encrypted mail preferred
http://www.thevertigo.com
signature.asc
Description: This is a digitally signed message part
___
help-bison@gnu.org
Bison source distribution. Did you
start with that one?
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
.push_back( move(v) );
return move(t);
}
}
%% /* Grammar Rules */
So I’m not sure if the Node and std::vector containers is causing the issues,
the templates code perhaps? (I found an example that used that utility and so
in a real sense I’m trying to stitch the two together but they didn’t look all
that different).
If anyone has hints I’d greatly appreciate it. Thanks!
Jared
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
en the lexer must read these by:
%{/* -*- C++ -*- */
...
#include "parser.hh"
...
%}
The C++ calculator example also includes a file "driver.hh".
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
le"
%token FACT "fact"
%token SIG "sig"
%token HINT “hint”
%token NAME
%token NUM
%token SIGN
REL
But then, how does that tie in with the flex scanner?? Where should I be tying
these two pieces together? Shouldn’t they use the same enum value (the
7;
make[1]: *** [Makefile:4522: check-recursive] Error 1
make[1]: Leaving directory
'/cygdrive/c/Users/Cailin_2/csci-e-95-project/src/bison-3.0.4'
make: *** [Makefile:4977: check] Error 2
You seem to have the line numbers where the errors occur. If you
look in the Makefile does it
5-project/src/bison-3.0.4'
> make[1]: *** [Makefile:4522: check-recursive] Error 1
> make[1]: Leaving directory
> '/cygdrive/c/Users/Cailin_2/csci-e-95-project/src/bison-3.0.4'
> make: *** [Makefile:4977: check] Error 2
>
You seem to have the line numbers where the er
i-e-95-project/src/bison-3.0.4'
make[2]: *** [Makefile:4975: check-am] Error 2
make[2]: Leaving directory
'/cygdrive/c/Users/Cailin_2/csci-e-95-project/src/bison-3.0.4'
make[1]: *** [Makefile:4522: check-recursive] Error 1
make[1]: Leaving directory
'/cygdrive/c/Users/Cailin_2/csci-e-95-project/src/bison-3.0.4'
make: *** [Makefile:4977: check] Error 2
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
: haifeng.qin; help-bison
Subject: Re: Ask for help about bison internationalization
On 08/07/2015 10:19, haifeng.qin wrote:
Hi!
1. How to generate code files that the string in files is a
wide-character(wstring/wchar_t)?
2. How to build bison on windows?
thanks
On 08/07/2015 10:19, haifeng.qin wrote:
Hi!
1. How to generate code files that the string in files is a
wide-character(wstring/wchar_t)?
2. How to build bison on windows?
thanks!
___
help-bison@gnu.org https://lists.gnu.org/mailman
Hi!
1. How to generate code files that the string in files is a
wide-character(wstring/wchar_t)?
2. How to build bison on windows?
thanks!
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
c.
byacc is not the "original" yacc. It even turns out that
Bison and Byacc have a common ancestor, but it is not the
original Yacc.
Here, in some way your build process depends on specific
details of Byacc, which probably explains why it fails
with Bison.
But I'm glad that it works n
ago though. I
would have no problem providing the code if it would help me get it to
build again?
As far as including the whole scanner in the yacc file, the y.tab.c file does
include the lex file but at the very end of it. After this BEGIN shows up.
BEGIN is a macro, so it must be #defined before
modified to create tight scope loops. The
peice of software I'm trying to build creates the assembler used to
compile the micros and firmware for this board. There was a time this
peice of software was "Company private". That was long ago though. I
would have no problem providing
> I assume lex.yy.c is the whole scanner?
Yes, that's what I meant.
> And I also assume you mean trying to include it before the BEGIN?
To include it before the body of the parser. You'll have to find
the right place, as the scanner certainly also wants to "see" th
"yacc.in"
#include "mic.c"
#include "fields.c"
#include "lex.yy.c"
I assume lex.yy.c is the whole scanner? And I also assume you mean
trying to include it before the BEGIN?
Regards
Mark
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
ver see things such as "BEGIN" or "unput" in
the parser: that's the scanner's job only.
Either be brave and change all this, or maybe there is a way
out, I don't know, by trying to #include the whole scanner in
the yacc file. In either case, expect pain :(
Do a grep of your source files to locate which file eBEGINi is located in. It
does not appear in any of the files included in you e-mail.
- Original Message -
From: Mark Hounschell
To: help-bison@gnu.org; flex-h...@lists.sourceforge.net
Cc:
Sent: Friday, November 1, 2013 6:36 AM
/01/2013 10:29 AM, Arthur Schwarz wrote:
Do a grep of your source files to locate which file eBEGINi is located in. It
does not appear in any of the
files included in you e-mail.
- Original Message -
From: Mark Hounschell
To: help-bison@gnu.org; flex-h...@lists.sourceforge.net
Cc:
Sent: F
I need to do.
I've subscribed and sent this email to both the flex-help and the
help-bison mailing lists because I really have no idea what the problem
really is. I hope that is appropiate.
The Linux distribution OS is OpenSuSE-12.3 and the software versions in
use are:
gcc-4.7-7.1.1
just creates internal data structures to track all of the
currently active parse stacks. All of the parallel parses read the
same stream of tokens.
R's,
John
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
portion of code in Bison2.5.
Does parallel parsers takes advantages of multicore processors, i.e each
parallel process runs on different cores simultaneously?
Please help.
Thanks in advance.
Leepika
--
View this message in context:
http://old.nabble.com/Need-Help-on-GLR-Parser
Le 3 nov. 2011 à 07:45, thiru ramakrishnan a écrit :
> Hello,
Hi Thiru,
> I just started using Bison 2.5 (on Ubuntu 9.04 - the Jaunty Jackalope).
>
> I get the error referred to above. I've looked in help-bison Archives and
> also searched on the Web for rpl_fprintf but
Hello,
I just started using Bison 2.5 (on Ubuntu 9.04 - the Jaunty Jackalope).
I get the error referred to above. I've looked in help-bison Archives
and also searched on the Web for rpl_fprintf but don't find any info.
Here is the relevant portion of the gcc output:
gcc -
r change getdate.y, 'make' shouldn't
attempt to rebuild the output files when 'make' is running
on your older environment.
___
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison
2.11 cpio?
Looking for a known workaround if possible?
Thanks,
Mitchell Erblich
UNIX Kernel Engineer : not a Bison expert or Bison
newbie
___
help-bison@gnu.org https://lists.gnu
h a folder with a space in the game or m4 fails.
--Phil
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
i want to install bison on the win xp
please send for me version of bison for win xp
please
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
On 07/29/2010 12:38 AM, Arnabendu Roy wrote:
Hi Team,
Could you please help me. I am new to Bison, As per the documentation, I
have created the rpcalc.y and generated a parser file with the help of
Bison. Now, Can I use Visual C++
to generate the object code. I am not sure if Visual C
Hi Team,
Could you please help me. I am new to Bison, As per the documentation, I
have created the rpcalc.y and generated a parser file with the help of
Bison. Now, Can I use Visual C++
to generate the object code. I am not sure if Visual C++ (Visual Studio
2008) is ISO C89 or later. When I
the
path right. One potential problem is that the MinGW gcc is (was?) not
up-to-date. I don't have a Windows system up, but I think I have to run
gcc 3.4.
HTH
-Evan
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
On Mon, May 10, 2010 at 9:00 AM, wrote:
> From: Evan Lavelle
> To: help-bison@gnu.org
> Date: Mon, 10 May 2010 09:18:00 +0100
> Subject: Re: bison 2.4.1 on Msys Win7
> /usr/local/share/bison/m4sugar/m4sugar.m4
> Sanity check: presumably you know that you don't have to b
yet stable enough to guarantee
backward compatibility. You will have to update oaSpefParser.skl. To
figure out how to do so, you can look for changes in the included
skeletons, such as yacc.c or glr.c.
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
help-bison,
I using bison(2.3) to handle a .ypp file :
bison --skeleton=oaSpefParser.skl --name-prefix=Parser --defines
--file-prefix=oaSpefParser --report=itemset --verbose
--output=oaSpefParser.cpp oaSpefParser.ypp
In "oaSpefParser.skl" there are some marcos "b4_XXX", de
Does bison have any tool to help design (criticize) the language one is
constructing? Is there an IDE which supports editing a parser? I am thinking
about something like ANTLRworks.
John
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo
It could help if you post ur files. Maybe theres something wrong.
hmm i´m this on the following way
bison -d -oparser.c parser.y // -d option creates the header for the
token used in the flexer
flex -oflexer.c flexer.l
gcc -oparser.o -c parser.c
gcc -oflexer.o -c flexer.c
gcc flexer.o parser.o
yyparse()in ccVcU1O4.o
"NFA::star()", referenced from:
yyparse()in ccVcU1O4.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I don't think it's because of some include missing (I have all includes
needed to read the functions). I compile the f
error is a macro defined by bison, not flex. There should be no
>>>> yyerror in your lex file. bison's definition of yyerror is not ("%s",
>>>> ...)
>>>> it's something different (which depends on your options to bison).
>>>
>>&
should use to replace the line '. { yyerror("mystery character
>> %c\n", *yytext); }' in order to catch errors.
>>
>> %option nodefault
>> %{
>> # include "yylval_string.tab.h"
>> %}
>> %%
>> [0-9]+ { yylval=atoi(yyte
. { yyerror("mystery character %c\n", *yytext); }
> %%
>
>
>
>> On Tue, 29 Dec 2009 23:02:33 -0600, Peng Yu
wrote:
>>> I have the source files listed at the end of the message. I basically
>>> want to parse a file with only numbers (separated by spac
ery character %c\n", *yytext); }
%%
> On Tue, 29 Dec 2009 23:02:33 -0600, Peng Yu wrote:
>> I have the source files listed at the end of the message. I basically
>> want to parse a file with only numbers (separated by spaces) and print
>> the numbers out. It is an overkill
urce files listed at the end of the message. I basically
> want to parse a file with only numbers (separated by spaces) and print
> the numbers out. It is an overkill to use bison/flex. But I just want
> to try how to use bison/flex.
>
> I need to understand how to debug the program. C
efer to "replst" which is represented by "$6".
See
http://www.gnu.org/software/bison/manual/html_node/Mid_002dRule-Actions.html#Mid_002dRule-Actions
for more details.
Regards
Daniel
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
cpp.l cpp.l
http://old.nabble.com/file/p26894424/symtab.c symtab.c
http://old.nabble.com/file/p26894424/symtab.h symtab.h
http://old.nabble.com/file/p26894424/makefile makefile
--
View this message in context:
http://old.nabble.com/%244-of-%27smthing%27-has-no-declared-type---pls
se < s.txt
> Now if my s.txt = *graph{init{}}*
> then I get output *INIT (null)RESPONSIVE STATEGRAPH FOUND.*
>
> However, if I change s.txt to *graph{initnabc{}}*
> then I get *se: syntax error line 0*
> i.e., it only recognizes state names whi
re is
some problem with ID.
I want it to recognoze graph, init as well as the state name.
I think ID definition conflicts with "graph", or "init".
It also generates a warning: No new line at end of file for .l file.
Please help me with this problem.
__
To override the default signature of yyparse() so that it can accept an
argument then inside %{..
.
#define YYPARSE_PARAM arg
%}
main()
{
char buffer[xxx];
yyparse(&buffer);
}
now in grammar actions use
(char *) arg
On Fri, May 1, 2009 at 9:00 AM, wrote:
> Send help-bison
On 8 Apr 2009, at 18:30, Alfonso Urdaneta wrote:
http://tinyurl.com/bucf23
Ah, so you did not use
http://www.fuckinggoogleit.com/
Hans
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
s been scanned for the presence of computer viruses.
Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Indra Systems, Inc.
___
help-
nd earlier.
There is also one for C++:
http://www.parashift.com/c++-faq-lite/compiler-dependencies.html#faq-38.11
You might also inquiry in the Usenet newsgroup comp.compilers.
Hans
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
INDIA
**
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
se %prec one of those.
Hans Aberg
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
ssion
TOKEN_RIGHTPAREN statement
TOKEN_ELSE statement
I put the %prec to try to resolve, but still get the shift/reduce
conflict. Any ideas? Thanks!
Clarke
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
hi my name is carlos menjivar I need your help about an evaluator expression
with bison example: (3+4)*5 I am new user I dont idea how do an evaluator
_
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows
and failed as it does to have
tried and succeeded.
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
On 26 Jun 2008, at 08:16, Mukesh Kaushal wrote:
I will be highly grateful if you or anybody could help me in
writing code or
algorithm to do this so that in future I could make changes in the
functionality according to my requirement.
You might ask in the Usenet newsgroup comp.compilers
parse tree according to parent child relation of these elements.
I will be highly grateful if you or anybody could help me in writing code or
algorithm to do this so that in future I could make changes in the
functionality according to my requirement.
---
Thanks in advance
Mukesh Kaushal
On 26/06/2
> my C code so that I can extract all the xmotif related info from the code.
> So kindly suggest me how to parse my C source code for this.
>
> --
>
> ---
> Regards
> Mukesh Kaushal
> ___
> help-bison@g
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
Hello
I downloaded and intalled "bison-2.1.exe".
how can i produce c++ parser for vc++ 7.1?
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
ry nearly deleted it. "[help-bison]" is not added
automatically.
Laurence Finston
On Thu, 13 Dec 2007, James Long wrote:
I've answered my own question. The requested semantic stack for
string[100] is too big.
Thanks,
Jim
--
%%
James Lo
I use a `class' type, since I use C++, though I do not generate a C++
parser. I simply generate a C parser and compile using `g++'. If you're
using C, you could use a `struct'. You could then use an array, a linked
list, a binary tree, or some other data structure to hold
for you to choose more
descriptive subjects. The subject "newbie" made me think this was
spam
and I very nearly deleted it. "[help-bison]" is not added
automatically.
Laurence Finston
On Thu, 13 Dec 2007, James Long wrote:
I've answered my own question. The requeste
n automatically recompute
column numbers for nonterminals?
I hope someone can provide or link to a sample code. Thank you.
--
View this message in context:
http://www.nabble.com/Help-with-Error-location-in-Bison-2.1-tf4690339.html#a13405137
Sent from the Gnu - Bison - Help mailing list archiv
e the
following prototypes :
int yyparse (MyParser * p);
int yylex (MyParser * p);
Now you just have to create and initialize a MyParser struct and call
yyparse(parser). You'll find more about this in the bison info page.
--
Cédric Lucantis
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
The important point is that `yyparse' is just a function and the file
of C code that contains it is just an ordinary "compilation unit". The
same rules of scoping and linkage apply to them as to other functions and
compilation units.
Laurence Finston
___
}
;
%%
For each command, I had to make a new commandlist. How do I do it so that I
make Commandlist comlist; only once, at the start of the program?
--
View this message in context:
http://www.nabble.com/help-with-parser-syntax-tf422
that I can give to flex to get it to generate in form which will make it
> thread safe?
You might try a Flex mailing list for those questions.
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
I couldn't understand much
Please help me I have had sleepless nights on this just because I am not
able to go ahead on this.
Waiting for ur reply
Thanks in advance...
Thanks
Arun
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
On 1 Jun 2007, at 00:25, Alejandro Navarro Casillas wrote:
I need some help about if there is an plugin of bison & flex to run
with
Codewarrion on Windows XP?
In the last millennium, I made such for Mac OS 9 PPC. Though it is
not difficult, there are some problems: memory leaks in B
Hi, all
I need some help about if there is an plugin of bison & flex to run with
Codewarrion on Windows XP?
Regards
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
mentioned in some FAQ.
Hans Aberg
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
ase->current);
printf("yylval->string_item:%s:\n", yylval.string_item);
printf("current_types->current:%s:\n", current_types->current);
while(list_base->rest!=NULL)
{
printf("%s:\n", list_base->current);
list_base=list_base->rest;
}
}
yyerror(s)
char * s;
{
fprintf(stderr, "%s\n", s);
}
Dustin Kick
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
This is not about headers. It is a linker error. Be sure that you have
compiled the lexer generated by flex (lex.yy.c or whatever) and then link
the object file when you compile the parser. We can help you better if you
post your compile commands.
satya.
--
"The time has come" the w
. I used the same headers, same compile commands, and still
can't get it to work. Any help would be appreciated. Thanks
--
View this message in context:
http://www.nabble.com/bison-flex-help-tf3344013.html#a9300600
Sent from the Gnu - Bison - Help mail
Roman font, whatever that means. So UTF-8 does not work, it seems,
and I will have to stick to Xcode until that is fixed.
Hans Aberg
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
e
> dually compiled, to give what you call "xemacs" (though it does not
> compile on Mac OS X.4.8).
I meant in the sense that like emacs/xemacs, Eclipse is now the editor that
can be used to edit pretty much anything.
--
alfonso e. urdaneta
www.red82.com - are you ready ?
___
4.8).
Hans Aberg
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
ready ?
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
what is described in the "Dragon book" by Aho et al.,
"Compilers...". Bison is using some additional stuff, apparently, to
compact states.
Hans Aberg
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
states in an attempt to understand the error.
I appreciate that there might well be more than one path to get to
the state with the error, but any help along these lines would be
welcome.
I think by experience, one can do without such a feature. S/R
conflicts can often be resolved by set
1 - 100 of 194 matches
Mail list logo