[il-antlr-interest: 26515] [antlr-interest] IntelliJ plugin doesn't work with the community edition

2009-10-26 Thread Alexandru Nedelcu
Hi, I'm an Antlr rookie. I installed the IntelliJ Community Edition, hoping to get a good IDE for my Antlr projects ... http://www.jetbrains.com/idea/nextversion/free_java_ide.html The Antlr plugin fails to launch ... apparently it throws a NumberFormatException on parsing the IntelliJ IDEA's ve

[il-antlr-interest: 26516] Re: [antlr-interest] ANTLR AST vs Tree Grammar

2009-10-26 Thread Natan Vivo
Hi Tommy, Tree Grammars and ASTs are not competing in the same space. AST is just the tree of nodes that represent your input. Tree Grammar is a grammar made specifically to parse those ASTs. You usually use them to walk through an AST you already built, and do things with it. Think about the mu

[il-antlr-interest: 26517] multiple variables grammar

2009-10-26 Thread lucky
Hi folks, I have a small issue with multiple variables of a statement. when i have one variable(ID) like the antlr grammar is statement: 'select' ID {print $ID.text} this is working fine. when i have multiple variables how to represent in grammar and how can i pass it as arguments to that pri

[il-antlr-interest: 26518] [antlr-interest] Antlr and language editor with Eclipse RCP

2009-10-26 Thread Helle, Guillaume
Hello, I am building a test language with antlr. Now I want to develop a code editor for this language with Eclipse RCP (as an Eclipse Plugin) with code completion, colour for keywords,... Have you do that from grammar or from java generated code? Have you a simple example of language editor buil

[il-antlr-interest: 26519] Re: [antlr-interest] Can somebody give me the very simplest example of grammar to AST to StringTemplate output

2009-10-26 Thread Naveen Chawla
I can't open the "tpantlr-code" file in that archive, for some reason. Can somebody give me, for example "a: 'hello'; ", just that single symbol grammar, then making an AST from it, then a Tree grammar, and using StringTemplate to output "hi" from it. I can't find such a simple example anywhere. i.

[il-antlr-interest: 26520] Re: [antlr-interest] Can somebody give me the very simplest example of grammar to AST to StringTemplate output

2009-10-26 Thread Naveen Chawla
Sorry if I sound rushed, I'm doing so many other things as well. Regards, N 2009/10/26 Naveen Chawla > I can't open the "tpantlr-code" file in that archive, for some reason. Can > somebody give me, for example "a: 'hello'; ", just that single symbol > grammar, then making an AST from it, then a

[il-antlr-interest: 26521] Re: [antlr-interest] Can somebody give me the very simplest example of grammar to AST to StringTemplate output

2009-10-26 Thread Naveen Chawla
I sounded rude! You are all legends, I just didn't want to delve into the C/Java bytecode yet, just in order to learn the basic syntax. It's the basic syntax is all I need right now, hence my request for an example translator of "hi" -> "hello", and I can't find it "bunched together" as such. Many

[il-antlr-interest: 26522] Re: [antlr-interest] Can somebody give me the very simplest example of grammar to AST to StringTemplate output

2009-10-26 Thread Jim Idle
Here are some snippets from a tree parser using option output=template: Straight creation from a rewrite and list: statements : s+=statement_comment* -> statements(stats={$s}) ; Just passing a result up the rule chain (don't have rules return an empty $st): rule

[il-antlr-interest: 26523] [antlr-interest] Setup question

2009-10-26 Thread Bill Steer
We're setting up a new machine (I have my development machine running Antlrworks-1.2.3) and can't find the Antlr3.Runtime.dll file in the Antlrworks-1.3 download. Can somebody please point me to where it is now? We need it for referencing from a Visual Studio project. Thanks. Bill List: h

[il-antlr-interest: 26524] Re: [antlr-interest] Setup question

2009-10-26 Thread Jim Idle
Have you tried looking on the Downloads page for ANTLR and downloading the .Net runtime? Jim > -Original Message- > From: antlr-interest-boun...@antlr.org [mailto:antlr-interest- > boun...@antlr.org] On Behalf Of Bill Steer > Sent: Monday, October 26, 2009 2:44 PM > To: antlr-inter...@a

[il-antlr-interest: 26525] [antlr-interest] How to access member of CommonTree subclass

2009-10-26 Thread Kaleb Pederson
I'm working with a tree parser that is creating ASTs of a custom type. This CommonTree subclass contains a member named elementType that identifies the type represented by the tree. How do I set the elementType dynamically within an action? I tried in the following way: id: ^(AST_ID tok+=I

[il-antlr-interest: 26526] Super Traffic Method

2009-10-26 Thread merrill kary
Discover How A High School Dropout Raked In His First $100,000 At 17 Years Of Age Without EVER Paying A Penny For Traffic! http://alturl.com/pxm8 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" gro

[il-antlr-interest: 26527] Re: [antlr-interest] How to access member of CommonTree subclass

2009-10-26 Thread Jim Idle
> -Original Message- > From: antlr-interest-boun...@antlr.org [mailto:antlr-interest- > boun...@antlr.org] On Behalf Of Kaleb Pederson > Sent: Monday, October 26, 2009 3:55 PM > To: antlr-inter...@antlr.org > Subject: [antlr-interest] How to access member of CommonTree subclass > > I'm

[il-antlr-interest: 26528] Re: [antlr-interest] How to access member of CommonTree subclass

2009-10-26 Thread Kaleb Pederson
On Monday 26 October 2009 04:18:21 pm Jim Idle wrote: ... > > I'm working with a tree parser that is creating ASTs of a custom type. > > This CommonTree subclass contains a member named elementType that > > identifies the type represented by the tree. How do I set the > > elementType dynamically

[il-antlr-interest: 26529] [antlr-interest] dumbie question: Are there any examples of building antlr programs using different IDEs?

2009-10-26 Thread Jacob, Raymond CIV SPAWARSYSCEN-ATLANTIC, 58420
I have a dumbie question regarding where can I find examples of how to build an antlr program using different IDEs? Background: I am not a java programmer. I have read part of the antlr book by Terrence Parr. I think I have gotten as far as the Chapter that use STL to build programs. I can not r

[il-antlr-interest: 26530] Re: multiple variables grammar

2009-10-26 Thread lucky
Hi friends, Any ideas for my question? Is there any solution for it or not ? My Idea is to do action immediately. So Can I have that facility in a grammar file like i can represent ( print_statement: 'print' az bz cz { here i want to print all those variables in print statement} (where az bz

[il-antlr-interest: 26531] Re: [antlr-interest] dumbie question: Are there any examples of building antlr programs using different IDEs?

2009-10-26 Thread Tommy Chheng
Take a look at antlr.org and download antlrworks Antlrworks can generate the the java files form the grammar files. tommy On 10/26/09 8:26 PM, Jacob, Raymond CIV SPAWARSYSCEN-ATLANTIC, 58420 wrote: > I have a dumbie question regarding where can I find examples of how > to build an antlr program

[il-antlr-interest: 26532] Re: [antlr-interest] How to access member of CommonTree subclass

2009-10-26 Thread Jim Idle
You can probably do: id : ( ^(AST_ID tok+=ID+) -> ^(AST_ID whatever) { action } ; Or get your method to return the node object and use it to rewrite the tree. Jim > -Original Message- > From: antlr-interest-boun...@antlr.org [mailto:antlr-interest- > boun...@antlr.org] On Behalf Of Ka

[il-antlr-interest: 26533] [antlr-interest] [C Target] Bug in AST walking , implementing control flow

2009-10-26 Thread Mohamed Yousef
Hi, on trying to implement control flow , in an AST walker grammar following this example : http://www.antlr.org/wiki/display/CS652/Tree-based+interpreters ifstat : ^('if' c=expr s=. e=.?) // ^('if' expr stat stat?) in the C target the problem is that in the generated code , variables e,s