Re: Kindly Help

2008-06-25 Thread Satya
give you a parsed syntax tree on which you can operate. You can try posting your problem on comp.compilers. /satya On Wed, Jun 25, 2008 at 12:56 AM, Mukesh Kaushal <[EMAIL PROTECTED]> wrote: > Hi all > > I am using an Xmotif application. Code is written in C. Now I want to parse

Re: VCG visualization

2008-04-26 Thread Satya
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 version. Satya On Sat, Apr 26, 2008 at 12:48 PM, Aaron Jackson &l

Re: Todo List?

2007-05-19 Thread Satya
There is a TODO file in the Bison cvs distribution. You can look here: http://cvs.savannah.gnu.org/viewvc/bison/TODO?revision=1.100&root=bison&view=markup On 5/19/07, Rob Quill <[EMAIL PROTECTED]> wrote: Hi, I was wondering if there wasa sort of todo list for Bison? As in a list of projects wh

Re: interpreter with bison

2007-05-10 Thread Satya
d the Bison manual about how to use them. satya. On 5/9/07, Xaris <[EMAIL PROTECTED]> wrote: I have made the parse tree with bison of a like html language which finds if the input file is written correctly or not. But i want to add code in order to make an interpreter which takes as input th

Re: Google summer of code '07

2007-04-01 Thread Satya
this. Ofcourse, I understand what you meant here was to instrument the *generated* parser with such tracing ability. Is that correct ? I cannot edit my proposal now, so pls consider this as a part of it. satya. On 4/1/07, Akim Demaille <[EMAIL PROTECTED]> wrote: Le 1 avr. 07 à 02:17, S

Re: Google summer of code '07

2007-03-31 Thread Satya
Thanks Akim. I thought so too. satya. On 3/31/07, Akim Demaille <[EMAIL PROTECTED]> wrote: Le 30 mars 07 à 18:38, Satya a écrit : > Yes, I meant to rewrite print.c too. But I did not understand why I > have to implement any grammar productions for for this. All output is >

Re: Google summer of code '07

2007-03-30 Thread Satya
On 3/30/07, Akim Demaille <[EMAIL PROTECTED]> wrote: >>> "S" == Satya <[EMAIL PROTECTED]> writes: > Hello! > I am looking at implementing the XML *. output in Bison this summer. > The one thing I did not understand on the project ideas page >

Google summer of code '07

2007-03-23 Thread Satya
I'd think we need an m4 skeleton to output info into XML. Why do we need a grammar for the report structure ? thanks, satya. ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Re: bison/flex help

2007-03-07 Thread Satya
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

Re: Creating a debugger for a bison designed language

2007-01-11 Thread Satya
as nothing to do with Bison again. satya. On 1/11/07, Sandon Racowsky <[EMAIL PROTECTED]> wrote: So if I'm understanding you correctly, I need create something along the lines of a C macro that appends line numbers around blocks of bison actions while simultaneously creating my own deb

Re: Creating a debugger for a bison designed language

2007-01-11 Thread Satya
hen it is debugged, the debugger has sufficient knowledge to point back to the lines in script file. How to do that -- i know not. Also, it has nothing to do with bison. satya. On 1/11/07, Hans Aberg <[EMAIL PROTECTED]> wrote: On 11 Jan 2007, at 19:44, Jachyra wrote: > If I use bison to es

Re: bison and C++

2006-12-12 Thread Satya
*pointers* to STL or user defined data types on the stack. I don't see how reallocation of the stack can affect this. Maybe I am missing something. Can you elaborate pls.. (maybe an example?) satya. -- Work expands to fill the time available for its completion (Parkison's law). http://

Re: bison and C++

2006-12-12 Thread Satya
No, you dont need to use the C++ skeleton. Just put an extern "C" declaration at the beggining of your parser file (.y file) e.g., extern "C" { int yyparse ( void ); int yylex ( void ); int yywrap (); void yyerror ( char* ); } satya. -- Work expands to fil

Re: debugging with gdb

2006-11-21 Thread Satya
sp[-2] etc.) otherwise it is best to insert a printf("..", $1); inside the semantic action. thanks, satya. On 11/21/06, Hans Aberg <[EMAIL PROTECTED]> wrote: On 21 Nov 2006, at 17:26, Sean Walton wrote: > I am trying to debug bison/yacc with gdb. I want to look at the > bis

Re: Feature Request: Help for S/R and R/R Errors

2006-10-29 Thread Satya
Satya is developing a GUI for displaying Bison grammars, I think, so you might explain your ideas to him. Hans Aberg hi, I am experimenting with various possibilities of helping people understand Bison (and parsing in general) better. I have currently implemented a gdb style

Re: Disabling Actions

2006-10-15 Thread Satya
switch(yyn) { ... /* your actions for each rule */ } just comment out this switch statement and compile the C file. As far as I know, there is no option to generate only the parser without actions. ./satya. On 10/15/06, Paulo J. Matos <[EMAIL PROTECTED]> wrote: Hi all, I've developed a p

Re: (no subject)

2006-10-02 Thread Satya
hi, Nope. I don't think so. The standard Bison distribution (1.2.8) is at: http://ftp.gnu.org/pub/gnu/bison/bison-1.28.tar.gz The files included in the above archive are the only files that will be installed. I am not one of the maintainers of Bison but this my understanding. ./satya.

Re: Re: Understanding C parsers generated by GNU Bison

2006-09-14 Thread Satya
ot;. Dick Grune has also written a parsing book free online; I think it is mentioned in the comp.compilers FAQ. Yes, that is tre . The LR parser is a PDA (an automaton that can recognize a CFG). Do you mean I should mention that in my document? Satya. __

Understanding C parsers generated by GNU Bison

2006-09-14 Thread Satya
comments/corrections etc. thanks, ./satya. ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Bison table compression algorithm

2006-08-18 Thread Satya
in that way (specific to Bison)? I'd want to read about that. Thanks!! -- satya ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Re: Big function in generated c file

2006-08-14 Thread Satya
The case statements execute the semantic actions in your grammar; so if you can reduce the number of semantic actions, yyparse() function will be smaller (there is one case for each rule that has an action associated with it); satya. On 8/14/06, adhip <[EMAIL PROTECTED]> wrote: I am

Including a new file in Bison sources

2006-07-20 Thread Satya
do I need to change in order to get these two compiled along with the rest of Bison souce files? Thanks! ./satya ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Re: better error reporting with bison and flex

2006-06-22 Thread Satya
YYSTYPE is int -- otherwise use the appropriate field of the union. and then you can use yylval to print the value in the error message... (infact now it becomes the $x of the token in your grammar): Hope this helps. ./satya. On 6/22/06, Guillaume Rousse <[EMAIL PROTECTED]> wrote: Hello. I'm

Re: Re: loops

2006-06-19 Thread Satya
and 'condition' having their own rules and semantics, it is not possible to give any specific example here. IMO it is out of scope for bison to implement the semantics of the loop for you. ./satya On 6/19/06, temp14 <[EMAIL PROTECTED]> wrote: Can you show me some examples?? &

Muscle tables and obstacks

2006-06-02 Thread Satya Kiran
hi Akim, Can you demystify muscle_table and Obstacks for me please?; what is a muscle_table used for? I get a hazy idea of Obstacks, but I am not clear what this kind of data structure is for.. how does it work and why is it there.. Thanks, ./satya On 5/14/06, Joel E. Denny <[EMAIL PROTEC

Re: Problem generating code from bison

2006-05-31 Thread Satya Kiran
h" 3. Comiple a.l --> lex.yy.c $ flex a.l 4. Compile lex.yy.c -->lex.yy.o (compile only) $ gcc -c lex.yy.c 5. Compile a.tab.c --> a.tab.o (Compile only) $ gcc -c a.tab.c 6. Now link both into the final executable $ gcc -o calc a.tab.o lex.yy.o 7. Execute calc program and enjoy your day

Re: Reducing conflict: Was: Exceeded limits of %dprec/%merge?

2006-05-19 Thread Satya Kiran
Sorry for a small digression, but are we moving toward implementing probablistic CFGs in bison? or is my understanding very oblique.. thanks! ./satya On 5/19/06, Joel E. Denny <[EMAIL PROTECTED]> wrote: On Fri, 19 May 2006, Derek M Jones wrote: > likely; as least I think so until m

Re: Exceeded limits of %dprec/%merge?

2006-05-17 Thread Satya Kiran
feel free to visit the the blog in reasonably long time intervals :) and add comments to it. Thanks! ./Satya On 5/17/06, Derek M Jones <[EMAIL PROTECTED]> wrote: Joel, >> I was hoping to dynamically catch all the ambiguities so they >> could be counted and analyzed in more deta

Re: Please guide

2006-05-15 Thread Satya Kiran
hi, There is a an excellent manual here: http://www.gnu.org/software/bison/manual/html_mono/bison.html ./satya On 5/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi Friend , I am a beginner in using of Parsers.Can somebody explain me or provide some good ma

Re: 2.1 C++ documentation

2006-05-14 Thread Satya Kiran
ram (I didnt find it @ savannah). Thanks! Satya. ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Re: Google summer of code

2006-05-09 Thread Satya Kiran
Sure. I will do that. When I was looking for documentation, I missed out one important place - and that place is the comments of the code; Thanks for pointing out. Any tips/starting points for me in reading bison code? Satya. On 5/9/06, Akim Demaille <[EMAIL PROTECTED]> wrote: Le 9 ma

Re: Google summer of code

2006-05-09 Thread Satya Kiran
reate the blog. It looks like I will definitely need a helping hand. I will ping you when I am deep enough into the rough waters of bison :) regards Satya. On 5/9/06, Akim Demaille <[EMAIL PROTECTED]> wrote: Le 9 mai 06 à 17:36, Derek M Jones a écrit : > Akim, > >>> The mai

Google summer of code

2006-05-08 Thread Satya Kiran
ntoring me. My aim is to gain a thorough knowledge of bison internals and practical issues in implementation of parsing algorithms. Project title: Implementation of Burke-Fisher Error correction implementation for bison C output. pls see attached proposal for details. Thanks! Satya.