hello there, I tried with the files attached and it's pretty much the same!
-------
jorge@jorge-laptop:~/sablecc/bin$ cat test.txt
ahsh
jorge@jorge-laptop:~/sablecc/bin$ java Main test.txt
jorge@jorge-laptop:~/sablecc/bin$
--------
but when I try using a production with an {if}, {while}, {for} etc...
then it fails again. I've checked(with jflap) the grammar as already
said, I've been reading the
sablecc docs, but I've found no problem with the implementation of grammar.
here is the output of a modifed example
-----------
jorge@jorge-laptop:~/sablecc/bin$ java Main test.txt
org.sablecc.baba.parser.ParserException: [2,1] expecting: EOF
jorge@jorge-laptop:~/sablecc/bin$ cat test.txt
ahsh
if sss then xxx end
-------------------
as you can see it wont read the if
thanks in advance
On 10/28/06, S'orlok Reaves <sorlok_reaves@xxxxxxxxx> wrote:
> > about the attachments, gmail only reports one
> > attachment and ins the Main.java there is no
> > test.txt file
>
>
> How's this zip work for you?
> Let us know the results of running the test.
>
> (-> SR
>
>
>
> > P.S. sorry :(
> >
> > also....
> > I'll download the SDK in linux and try there just to
> > make sure.
> > also is there a problem whith the outdated java
> > here? or does anyone
> > know about similar problems in OSX, I've heard mixed
> > opinions about
> > the built-in java in OSX
> >
> > thanks in advance
> >
> >
> >
> > On 10/27/06, Etienne Gagnon <egagnon@xxxxxxxxxxx>
> > wrote:
> > > Hi Jorge,
> > >
> > > There are many little things that can go wrong
> > (end of line characters,
> > > end of file characters added by OSX editors,
> > etc.). Could you really
> > > try running the grammar, program, and test files I
> > attached to my last
> > > message and report whether you still get an error
> > or not with them
> > > (specially the test.txt file).
> > >
> > > Thanks,
> > >
> > > Etienne
> > > PS: Please do not add me as recipient to your
> > replies; I already get
> > > your replies throught the mailing list. I won't
> > reply faster if I get
> > > multiple copies of your emails. ;-)
> > >
> > > Jorge Mario G. Mazo wrote:
> > > > hi there
> > > > here is what I get
> > > > it's sablecc 3.1 running on OSX tiger
> > > > thanks in advance
> > > > -----------
> > > > tiger:~/Desktop/sablecc-3.1/bin jorge$ cat
> > example.txt
> > > > if work then happy end
> > > >
> > > > tiger:~/Desktop/sablecc-3.1/bin jorge$ java Main
> > example.txt
> > > > org.sablecc.baba.parser.ParserException: [1,1]
> > expecting: EOF
> > > ...
> > > --
> > > Etienne M. Gagnon, Ph.D.
> > http://www.info2.uqam.ca/~egagnon/
> > > SableVM:
> > http://www.sablevm.org/
> > > SableCC:
> > http://www.sablecc.org/
> > >
> > >
> > > _______________________________________________
> > > SableCC-user mailing list
> > > SableCC-user@xxxxxxxxxxx
> > >
> >
> http://sablecc.org/lists/control/listinfo/sablecc-user
> > >
> > >
> > >
> > >
> >
> > _______________________________________________
> > SableCC-user mailing list
> > SableCC-user@xxxxxxxxxxx
> >
> http://sablecc.org/lists/control/listinfo/sablecc-user
> >
>
>
>
> ____________________________________________________________________________________
> Get your email and see which of your friends are online - Right on the New Yahoo.com
> (http://www.yahoo.com/preview)
>
>
>