[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
anything.
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
throw.
j.
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.*
>

**grammar for propositional logic**, *Martin McDermott*, `2010/09/01`
**Re: grammar for propositional logic**, *Alfonso Urdaneta*, `2010/09/01`
**Re: grammar for propositional logic**, *Martin McDermott*, `2010/09/01`
*Message not available***Fwd: grammar for propositional logic**, *John P. Hartmann*, `2010/09/01`
**Re: grammar for propositional logic**, *Martin McDermott*, `2010/09/01`
**Re: grammar for propositional logic**, *John P. Hartmann*, `2010/09/01`
*Message not available***Re: grammar for propositional logic**, *John P. Hartmann*, `2010/09/01`
**Re: grammar for propositional logic**, *Martin McDermott*, `2010/09/01`
**Re: grammar for propositional logic**, *John P. Hartmann*, `2010/09/01`
**Re: grammar for propositional logic**, *Martin McDermott*, `2010/09/01`
**Re: grammar for propositional logic**,
*John P. Hartmann* **<=**
**Re: grammar for propositional logic**, *Martin McDermott*, `2010/09/01`
**Re: grammar for propositional logic**, *John P. Hartmann*, `2010/09/01`

**Re: grammar for propositional logic**, *Hans Aberg*, `2010/09/01`