help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison invalid input '\r' question and C++ in YACC/BISON


From: Hiren
Subject: Re: Bison invalid input '\r' question and C++ in YACC/BISON
Date: 15 Feb 2003 21:38:24 -0500

Thank you very much for your assistance.  I am still working on porting
it to Bison but I am satisfied in using YACC for now.  However, I have
another newbie question.

I have a lexer that parses a certain syntax and I am sending a string
that in my YACC is said to be a %token <str> QSTRING where there is a
union of cha* str.  Now in my grammar I want to just output the string
when I get the strings.  I'm not sure if I need a symbol table or not
here.  I don't think I would because my YACC has the datastructures that
where I can store most of my information.  Please if you have a sample
code doing this simple task then please post it.  I'd greatly appreciate
it.

Goal: To parse certain language: i.e. myname <Hiren>
YACC has to be able to print Hiren after the lexer has parsed the input
and returned the string Hiren. 

Thanks for your help.

Hiren







reply via email to

[Prev in Thread] Current Thread [Next in Thread]