help-bison
[Top][All Lists]
Advanced

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

Re: Language with comments


From: Stefano Simonucci
Subject: Re: Language with comments
Date: Tue, 08 May 2007 18:45:31 +0200

On Tue, 2007-05-08 at 18:30 +0200, Stefano Simonucci wrote:
> Hi! 
> I try to make a syntactic recognizer. In the language can be included
> also comments of the type " # <comment> ".
> I have made two files: prova.lex and prova.y for flex and bison.
> A comment consists of a list (also empty) of identifier.
> But I get always syntax errors.
> We enclose the files prova.lex, prova.y, a file for the compilation
> (compila) and an input file (prova.E) 
> Thank you.
>   Stefano
> 

The file prova.E is wrong. 
The correct one is the following 

cat prova.E
#
# AA
#




-- 
Stefano Simonucci

GNU/Linux User: #81790  http://counter.li.org





reply via email to

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