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

Re: getting [1,1] expecting: EOF no matter what



Hello again
I installed in linux lastes java and sablecc
I tested the grammar with jflap and it said the grammar was OK
if mr Gagnon means that test.txt its a file with just "ash" here is what I get

jorge@jorge-laptop:~/sablecc/bin$ cat test.txt
dsad
jorge@jorge-laptop:~/sablecc/bin$ java Main test.txt
jorge@jorge-laptop:~/sablecc/bin$

but when I put an "if" it fails again... :(
now I'm totally lost, the grammar was checked on jflap and it said it was fine
the editor is not the problem (tried in both OS' different editors)

jorge@jorge-laptop:~/sablecc/bin$ cat test.txt
if hello then bye end
jorge@jorge-laptop:~/sablecc/bin$ java Main test.txt
org.sablecc.baba.parser.ParserException: [1,1] expecting: EOF

I dont know what can be the problem
thanks in advance


On 10/27/06, Jorge Mario G. Mazo <vadersolo@xxxxxxxxx> wrote:
Hi there
about the attachments, gmail only reports one attachment and ins the
Main.java there is no test.txt file

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
>
>
>
>