Getting bison to ignore tokens... sometimes!

2011-05-31 Thread Paulo J. Matos
Hi, I am pretty sure bison cannot simply ignore tokens. However, I don't know what's the usual flex/bison pattern to solve this issue. I am implementing a parser for a language that terminates statements with a newline, however, the newline doesn't always terminate statements... only after a s

Re: VCG visualization

2008-04-29 Thread Paulo J. Matos
On Sat, Apr 26, 2008 at 10:33 PM, Satya <[EMAIL PROTECTED]> wrote: > The current CVS Bison will generate dot files instead of VCG files. This > change was made some time ago > (http://lists.gnu.org/archive/html/bison-patches/2006-10/msg00047.html), but > has not yet found it's way into a release ve

Re: VCG visualization

2008-04-25 Thread Paulo J. Matos
On Thu, Apr 24, 2008 at 7:14 PM, Derek M Jones <[EMAIL PROTECTED]> wrote: > Paulo, > > > > > I am on a Mac and I would like to know if anybody has any suggestion > > on a free software to visualize vcg files resulting from bison output > > or convert them to a bitmap file. > > > > I find graphviz

VCG visualization

2008-04-24 Thread Paulo J. Matos
Hello all, I am on a Mac and I would like to know if anybody has any suggestion on a free software to visualize vcg files resulting from bison output or convert them to a bitmap file. Cheers, -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS Unive

Location Tracking

2006-12-04 Thread Paulo J. Matos
Hi all, When generating C++, If I don't use %locations, why do I still get a locations and position files? Are they required anyway? Moreover, error in parser class still gets a reference to a location. If I don't use locations, what reference is that? I would expect when disabling locations that

Undefined Ids

2006-12-02 Thread Paulo J. Matos
[I'm sorry for cross-posting but I think this might concern both lists] Hello, I've generated a C++ Parser and C++ Scanner with bison 2.3 and flex 2.5.33 respectively. They are both prefixed with smt in my case. I've been also having a hard time to use both together without trouble and unfortuna

Re: Generated parser searching for y.tab.c

2006-11-30 Thread Paulo J. Matos
On 11/30/06, Paulo J. Matos <[EMAIL PROTECTED]> wrote: Any ideas on how to solve this issue? Solved using --defines=... command lne argument. I vote for being possible to do this using a bison declaration. Regards, Paulo Matos Regards, -- Paulo Jorge Matos - pocm at soton.ac.u

Re: Wishlist: Allow %defines to specify filename, just like --defines=

2006-11-30 Thread Paulo J. Matos
On 8/21/06, Frans Englich <[EMAIL PROTECTED]> wrote: Hello, I have a wishlist for Bison: It would be practical if the %defines directive allows the filename to be explicitly specified, just like for --defines. For example, --defines=MyFile.h works, but something like: %defines=MyFile.h doe

Generated parser searching for y.tab.c

2006-11-30 Thread Paulo J. Matos
Hi all, I'm defining a parser: foo.yy: %name-prefix="foo" %skeleton "lalr1.cc" /* -*- C++ -*- */ %require "2.1a" %defines %yacc %{ ... %} ... I have in my configure.ac: ... # Checks for programs. AC_LANG([C++]) AC_PROG_CXX AC_PROG_CC AC_PROG_YACC AC_PROG_LEX ... And

Using C++ generated parsers with autotools

2006-11-25 Thread Paulo J. Matos
Hello all, If you're currently using autotools with C++ generated parsers, how do you handle all those generated files within autotools? How do you say location.hh and position.hh and others were generated by bison and they should be cleaned up? Regards, -- Paulo Jorge Matos - pocm at soton.ac.u

Re: Memory Leaks

2006-11-18 Thread Paulo J. Matos
On 11/13/06, Hans Aberg <[EMAIL PROTECTED]> wrote: There is now %destructor to clean up C-code leaks during error recovery; otherwise, do it by hand in the actions. What do you mean by error recovery? If the parsing fails? I still cannot understand when %destructor code is called. I think th

Memory Leaks

2006-11-13 Thread Paulo J. Matos
Hi all, I've generated a parser with bison and I tried running valgrind on it. The wierd thing is... there's a huge bunch of memory leaks reported. :-( Is this known? Is this a bison leak or a valgrind bug? Regards, -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/poc

Disabling Actions

2006-10-15 Thread Paulo J. Matos
Hi all, I've developed a parter with flex/bison and I would like to find a simple way to check how long it takes to parse the file without executing the actions. Is there an option I can enable to ignore actions? Regards, -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk

Citing the Bison Manual

2006-03-28 Thread Paulo J. Matos
Hi all, I would like bison entry a bibtex entry. Is there a standard for the bibtex entry? Can I use: @manual{manual21bison, address = {http://www.gnu.org/software/bison/bison.html}, organization = {GNU Software Foundation}, title = {Bison, Version 2.1}, url = {http