[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Re: Information on flex



Hi
        Thanx for the tip. It solved my problem.

R.Anil Kumar


Saisanthosh Balakrishnan wrote:

> >     Can anyone help me on flex. I am learning to use it and i tried
> > copying the second example in its man page directly to a file name
> > lexinput and tried
> >             flex lexinput
> >          It gives an error stating error unexpected EOF on line 52.
> > Could anyone guide me through this
>
> iirc, the example you are talking abt is the 3rd one. anyway, remove
> the tab (or spaces) at the start of each line in flexinput.
>
> ie.
>
>         /* scanner for a toy Pascal-like language */
>         %{
>                 /* need this for the call to atof() below */
>                 #include <math.h>
>
> should be
>
> /* scanner for a toy Pascal-like language */
> %{
>         /* need this for the call to atof() below */
>         #include <math.h>
>
>
> --
> saisanthosh
>
> -----------------------------------------------------------------------
> For information on this and other Linux India mailing lists check out
> http://lists.linux-india.org/