Hello,

I'm converting DmlSQL2 grammar [1] from v2 to v3 of ANTLR and adapting 
for Java parser.

1. How can I convert to following expression to v3:
   -----------------------------
   any_token : !
        . // {cout << tokenNames[LA(1)] << ' ' << LT(1)->getText() <<
   endl;}
   ;
   -----------------------------
   ?

2. What can I do to avoid receiving error

    DmlSQL2.g:285:25: syntax error: antlr: DmlSQL2.g:285:25: unexpected
    token: '\177'

    for the following rule:

   -----------------------------
    SIMPLE_LETTER :
        'a'..'z' | 'A'..'Z' // | '\177'..'\377'
    ;
   -----------------------------

3. When generating Lexer from the grammar I receive the following error:
    -------------------------------
    C:\workspace\momis\etc-test\sql\output\DmlSQL2Lexer.java:4078:
    unclosed
    string literal

    [21:34:09]             match("
    [21:34:09]
    -------------------------------
    and the tail of the lexer file is like it:
    -------------------------------
                break;
                case 2 :
                    //
        C:\\workspace\\momis\\etc-test\\sql\\DmlSQL2.g:232:33: '' ' ' ''
                    {
                    match('
    -------------------------------

    What can be the reason?

TIA,
Maciej


1. http://www.antlr.org/grammar/1057936474293/DmlSQL2.g

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

Reply via email to