writing YACC-rules

writing YACC-rules

Post by Bert Aert » Fri, 21 Aug 1998 04:00:00



Hi,

I'm writing a parser for quite a while now, but everytime I have
to extend the syntax, I bounce into errors that the parser
is reducing my token sequences always according to the
wrong rule - albeit a rule that has a strong resemblence
with the correct one.

The books I've learned it from explain how you can write
your syntax, but they don't give a methodology to follow
when writing fail-safe YACC-rules ( "fail-safe" just means
that the user provides the parser with a correct syntax ).

Suggestions are greatly appreciated,

Bert

--
                       ===== __ =====    

=============================\/============================
 mail   : Bert Aerts        
          Katholieke Universiteit Leuven
          ESAT-MICAS-group  room 91.21
          Kardinaal Mercierlaan 94
          B-3000 Leuven, Belgium
 phone  : 0032-(0)16-32 10 76 - fax : 0032-(0)16-32 19 75

 URL    : http://www.esat.kuleuven.ac.be/~aerts
===========================================================

 
 
 

1. YACC + YACC = YACC

Hi,

I'd like to use YACC and LEX twice in an executable. I'd like to read
two different file formats at different times in the program. I link
two objects, each created by yacc. The later object overwrites the
previous definitions.

Is there any way to make the yacc funtions unique?

-frank


Concurrent Technologies Corp.
1450 Scalp Avenue                       Phone:  (814) 269-2650
Johnstown, PA 15904                     Fax:    (814) 269-2402

2. Help! with installing SMC1211TX network card

3. YACC & LEX: Can I write a pascal-converter in it ?

4. XF86 Question

5. YACC Attack -- Please try YACC'ing this.

6. STARWARS RPG

7. Newbie request - Writing blocking rules

8. recompiling kernel questions/problems

9. GNU Make question - how to write a rule for such a situation

10. Linux Sendmail V8 Re-Writing Rules.. Help.

11. writing ipchain rules

12. how can I write this Ipchains rules ?? ?

13. - help needed writing Makefile rule -