On 08/25/2010 07:35 AM, Prados Valiente Enrique wrote: > Hi all, > > I use Antlr3.exe (C# Runtime) and PLSQL3.g file (attached), > > > > I try generate tree grammar, and I get this error:
I believe that your problem is that you *don't* have a tree grammar. Instead, what you have a is a combined grammar (Lexer and Parser). Remove the word "tree" from the line which contains "tree grammar" and see if that fixes your problem. > > > Any suggestions, please ? > > > > [13:27:03] error(3): cannot find tokens file > E:\TreeGrammar\output\block.tokens > > [13:27:03] error(102): PLSQL3.g:1509:1: lexer rule QUOTED_STRING not > allowed in parser > > [13:27:03] error(102): PLSQL3.g:1512:1: lexer rule ID not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1516:1: lexer rule SEMI not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1519:1: lexer rule COLON not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1522:1: lexer rule DOUBLEDOT not allowed > in parser > > [13:27:03] error(102): PLSQL3.g:1525:1: lexer rule DOT not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1529:1: lexer rule POINT not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1532:1: lexer rule COMMA not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1535:1: lexer rule EXPONENT not allowed > in parser > > [13:27:03] error(102): PLSQL3.g:1538:1: lexer rule ASTERISK not allowed > in parser > > [13:27:03] error(102): PLSQL3.g:1541:1: lexer rule AT_SIGN not allowed > in parser > > [13:27:03] error(102): PLSQL3.g:1544:1: lexer rule RPAREN not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1547:1: lexer rule LPAREN not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1550:1: lexer rule RBRACK not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1553:1: lexer rule LBRACK not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1556:1: lexer rule PLUS not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1559:1: lexer rule MINUS not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1562:1: lexer rule DIVIDE not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1565:1: lexer rule EQ not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1568:1: lexer rule PERCENTAGE not > allowed in parser > > [13:27:03] error(102): PLSQL3.g:1571:1: lexer rule LLABEL not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1574:1: lexer rule RLABEL not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1577:1: lexer rule ASSIGN not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1580:1: lexer rule ARROW not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1583:1: lexer rule VERTBAR not allowed > in parser > > [13:27:03] error(102): PLSQL3.g:1586:1: lexer rule DOUBLEVERTBAR not > allowed in parser > > [13:27:03] error(102): PLSQL3.g:1589:1: lexer rule NOT_EQ not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1592:1: lexer rule LTH not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1595:1: lexer rule LEQ not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1598:1: lexer rule GTH not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1601:1: lexer rule GEQ not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1604:1: lexer rule NUMBER not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1613:1: lexer rule N not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1616:1: lexer rule QUOTE not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1620:1: lexer rule DOUBLEQUOTED_STRING > not allowed in parser > > [13:27:03] error(102): PLSQL3.g:1623:1: lexer rule WS not allowed in > parser > > [13:27:03] error(102): PLSQL3.g:1625:1: lexer rule SL_COMMENT not > allowed in parser > > [13:27:03] error(102): PLSQL3.g:1628:1: lexer rule ML_COMMENT not > allowed in parser > > [13:27:03] error(102): PLSQL3.g:1631:1: lexer rule TYPE_ATTR not allowed > in parser > > [13:27:03] error(102): PLSQL3.g:1634:1: lexer rule ROWTYPE_ATTR not > allowed in parser > > [13:27:03] error(102): PLSQL3.g:1637:1: lexer rule NOTFOUND_ATTR not > allowed in parser > > [13:27:03] error(102): PLSQL3.g:1640:1: lexer rule FOUND_ATTR not > allowed in parser > > [13:27:03] error(102): PLSQL3.g:1643:1: lexer rule ISOPEN_ATTR not > allowed in parser > > [13:27:03] error(102): PLSQL3.g:1646:1: lexer rule ROWCOUNT_ATTR not > allowed in parser > > [13:27:03] error(102): PLSQL3.g:1649:1: lexer rule BULK_ROWCOUNT_ATTR > not allowed in parser > > [13:27:03] error(102): PLSQL3.g:1652:1: lexer rule CHARSET_ATTR not > allowed in parser > > > > > > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- Kevin J. Cummings [email protected] [email protected] [email protected] Registered Linux User #1232 (http://counter.li.org) List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
