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

Re: ParserException: [1,1] expecting: EOF



Hi Lola,

It works for me (see below). There's probably something wrong in your NetBeans setup. You could try running SableCC from the command line, until you find the problem.

Call to all: Is there any NetBeans user that could help Lola?

Etienne
PS: Here's the execution trace:
$ sablecc grammar.sablecc

SableCC version 3.2
Copyright (C) 1997-2003 Etienne M. Gagnon <etienne.gagnon@xxxxxxx> and
others.  All rights reserved.

This software comes with ABSOLUTELY NO WARRANTY.  This is free software,
and you are welcome to redistribute it under certain conditions.

Type 'sablecc -license' to view
the complete copyright notice and license.


 -- Generating parser for grammar.sablecc in /Users/egagnon/tmp/bug
Adding productions and alternative of section AST.
Verifying identifiers.
Verifying ast identifiers.
Adding empty productions and empty alternative transformation if necessary.
Adding productions and alternative transformation if necessary.
computing alternative symbol table identifiers.
Verifying production transform identifiers.
Verifying ast alternatives transform identifiers.
Generating token classes.
Generating production classes.
Generating alternative classes.
Generating analysis classes.
Generating utility classes.
Generating the lexer.
 State: INITIAL
 - Constructing NFA.
....................................................
 - Constructing DFA.
.........................................................................................
....................................
 - resolving ACCEPT states.
Generating the parser.
.......
.......
.......
..
.......

Lola Oluyomi wrote:
[...]
Find attached a sample grammar file.
[...]

-- 
Etienne M. Gagnon, Ph.D.
SableCC:                                            http://sablecc.org
SableVM:                                            http://sablevm.org

Attachment: signature.asc
Description: OpenPGP digital signature