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