are you sure that the file name is called T.g in AW?
T
On Jul 14, 2009, at 3:00 PM, Bryan S Follins wrote:
> Found my generation error. I was using () instead of {} for the
> java code. Generation is good. However, it still does not debug the
> code.
>
> When I run the debugger I get: “Compiler failed with result code
> 1.” Does anyone know that means?
>
>
> From: [email protected]
> [mailto:[email protected]
> ] On Behalf Of Bryan S Follins
> Sent: Tuesday, July 14, 2009 14:10
> To: [email protected]
> Subject: [antlr-interest] Simple code with a simple problem
>
> I tried creating a simple grammar in ANTLR Works as follows:
>
> grammar T;
>
> r : 'call' ID
> ';' (System.out.println('invoke '+$ID.text););
> ID : 'a'..'z'+;
> WS : (' ' | '\n' | '\r')+ ($channel=HIDDEN;);
>
>
>
>
> I got the following error:
>
> “Cannot generate the code because error (7): cannot find or open
> file C:\Documentsand Settings\Owner\MyDocuments\5135\Summer5135\.g”
>
> By the way I deleted the .g file and tried to regenerate the code,
> but I get the same error. The last time I looked my paths were set
> up right. I know I must be doing something wrong that is simple to
> correct. Can someone help me out on this?
>
> Bryan
>
>
> "When you have eliminated the impossible, whatever remains, however
> improbable, must be the truth."
> --Sherlock Holmes from Sir Arthur Conan Doyle's The Sign of Four.
>
> I AM an information warrior...
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
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
-~----------~----~----~----~------~----~------~--~---