[il-antlr-interest: 26559] Re: [antlr-interest] [SOLVED] ANTLR3 C runtime in HP-UX

2009-10-29 Thread Hugo Picado
t; > > > Jim > > > > *From:* antlr-interest-boun...@antlr.org [mailto: > antlr-interest-boun...@antlr.org] *On Behalf Of *Hugo Picado > *Sent:* Monday, October 12, 2009 3:09 PM > *To:* antlr-inter...@antlr.org ANTLR > *Subject:* [antlr-interest] [SOLVED] ANTLR3 C runtim

[il-antlr-interest: 26198] [antlr-interest] [SOLVED] ANTLR3 C runtime in HP-UX

2009-10-12 Thread Hugo Picado
Hi, When compiling libantlr3c-3.2 in HP-UX it gives the following error: Error 172: "src/antlr3debughandlers.c", line 302 # Undeclared variable 'TCP_NODELAY'. setsockopt(delboy->socket, SOL_SOCKET, TCP_NODELAY, (const void *)&optVal, sizeof(optVal)); To solve this problem it

[il-antlr-interest: 25587] Re: [antlr-interest] Get results of multible tokens

2009-09-02 Thread Hugo Picado
Hi, One fast approach is to divide to conquer: line : property subtokenlist DPOINT attribute ; property : TOKEN { System.out.println ("Property: " + $TOKEN.text); } ; subtokenlist : (SEMI TOKEN { System.out.println("Subtoken: " + $TOKEN.text); } )* ; attribute : TOKEN { System.out.println

[il-antlr-interest: 25065] Re: [antlr-interest] LLVM example: wiki or book?

2009-08-06 Thread Hugo Picado
I will post the full source code after > I take another pass over it and so on. > T > > > On Aug 5, 2009, at 2:38 PM, Hugo Picado wrote: > > Hi Terence, >> >> You don't actually need to put a big example, as long as it is a good >> example. Independently

[il-antlr-interest: 25054] Re: [antlr-interest] LLVM example: wiki or book?

2009-08-05 Thread Hugo Picado
Hi Terence, You don't actually need to put a big example, as long as it is a good example. Independently of the specific grammar, I think it should address common issues such as parsing, tree walk, input/output parameters in rules, lists, use of the most important predicates such as tokens, header

[il-antlr-interest: 24750] Re: [antlr-interest] Multiple evaluations of the same tree

2009-07-19 Thread Hugo Picado
Hi Michael, It worked great, thanks for the answer. Regards, Hugo. On Sat, Jul 18, 2009 at 2:12 AM, Michael Bedward wrote: > Hello Hugo, > > Try this: > > BufferedTreeNodeStream nodes = new BufferedTreeNodeStream(myTree); > LangWalker evaluator = new LangWalker(nodes); > for(int i = 0; i < 1000

[il-antlr-interest: 24720] [antlr-interest] Multiple evaluations of the same tree

2009-07-17 Thread Hugo Picado
Hi everyone, I'm brand new to ANTLR. I didn't find any doubt similar. Imagine a parser which the first rule is "prog", the output option is AST. I created a tree walker to perform the tree evaluation but I need to evaluate the same tree in a loop such as: CommonTreeNodeStream nodes = new CommonT