[Top][All Lists]

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

Re: grammar for propositional logic

From: John P. Hartmann
Subject: Re: grammar for propositional logic
Date: Wed, 1 Sep 2010 10:01:47 +0200

You didn't turn on debugging in flex, which is why it doesn't tell you

Assuming you don't care about whitespace, you need to split the rule
on line 39 into

[ \t\r]               ;
[\n]                 {lexEcho("%s", yytext); return yytext[0];}

The default rule needs to return something or abort the parse.  You
might return T_ERROR in case you'd like to find more than one error a


On 1 September 2010 09:43, Martin McDermott
<address@hidden> wrote:
> Flex doesn't give me any output and looking online it looks like whitespace
> wouldn't be causing this. For everything else I used the "." to have misc
> things printed out.
> So I'm not sure how thats possible or where its coming from. I attached the
> file in case anyone feels like taking a look.

reply via email to

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