[il-antlr-interest: 25015] [antlr-interest] C# 3 grammar needed

2009-08-03 Thread Aravinda Dassanayake
Hi everybody, I am looking for a C# 3.0 ANTLR grammar. Is one available out there? Regards, Aravinda -- Voice - +94(0)715320257 IM - aravinda777 Blog - http://aravindad.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscrib

[il-antlr-interest: 25014]

2009-08-03 Thread Nizamuddin C
Hello, Click here to download latest questions. answers brain dumps for actual and real exams. full Information about microsoft examinations, Almost every certification preparation questions are available at below given link,, please follow link http://mscitp.blogspot.com/ http://msc

[il-antlr-interest: 25013] Re: [antlr-interest] Reload an AST from serialized form.

2009-08-03 Thread Michael Bedward
Thanks Tommy, this is a very good idea. Michael 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 subscri

[il-antlr-interest: 25012] Re: [antlr-interest] How to debug grammars on Vista

2009-08-03 Thread David-Sarah Hopwood
David-Sarah Hopwood wrote: > If all else fails, download a port monitor (e.g. > -- although that is just the > first one I found using Google, and I cannot vouch for it) Actually, TCPView may be better for this:

[il-antlr-interest: 25011] Re: [antlr-interest] How to debug grammars on Vista

2009-08-03 Thread David-Sarah Hopwood
sunao furukawa wrote: > Hello! Everybody. > some days ago,I got a reply from this mailinglist(David-Sarah Hopwood). > ANTLRWorks generated(debug menu->debug) __Test__.java, > debugging(debug menu->debug remote) T1.g is successful. > But,TestE.java doesn't get a port(DEBUGGER_PORT 48000), > so debug

[il-antlr-interest: 25010] Re: [antlr-interest] Extending a CommonTree

2009-08-03 Thread David-Sarah Hopwood
Marwan Ajraoui wrote: > Hi there; > > I did define a customized node, extending a commonTree, defined an > adaptor extending a CommonTreeAdaptor, for my semantic analysis. > Nevertheless, I'm getting a classCastException, when the parser find > the first sintax error. > > The reason is that it c

[il-antlr-interest: 25009] Can't build C runtime (antlr 3.1.3)

2009-08-03 Thread a_m0d
Hi all, I am trying to build the C runtime for antlr, but there is an error when in the configure script. Here is the output that I get: [a_...@localhost C]$ autoconf configure.ac:54: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_p

[il-antlr-interest: 25008] Re: [antlr-interest] How to extend the CommonTree without getting aclasscastexcpetion in the generated code?

2009-08-03 Thread Sam Harwell
1. Derive a class CustomizedErrorNode from your class CustomizedNode. 2. Derive a class CustomizedTreeAdaptor from CommonTreeAdaptor. In it, override create(Token) to return a CustomizedNode, and override errorNode(TokenStream,Token,Token,RecognitionException) to return a CustomizedErrorNode. Se

[il-antlr-interest: 25007] Re: [antlr-interest] How to extend the CommonTree without getting a classcastexcpetion in the generated code?

2009-08-03 Thread Marwan Ajraoui
I think that altering code generation so catch-clauses get replace with the action specified is the best aproach in my case: @rulecatch { catch (RecognitionException e) { ... throw e; } } Cheers, Marouane 2009/8/3 Marwan Ajraoui : > Hi there; > > I did define a customized node, exten

[il-antlr-interest: 25005] Re: [antlr-interest] Question about the antlrv3.g

2009-08-03 Thread Gavin Lambert
At 08:46 4/08/2009, Shaoting Cai wrote: >Hello, > >In the latest ANTLRv3.g >(http://fisheye2.atlassian.com/browse/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g?r=5943#l185) >...

[il-antlr-interest: 25004] Re: [antlr-interest] Question about the antlrv3.g

2009-08-03 Thread Shaoting Cai
Omg~~~ Being dumb today. Thanks Terence! On Mon, Aug 3, 2009 at 1:50 PM, Terence Parr wrote: > hi Shaoting, which alternatives? remember | means alternative not newline. > T > > On Aug 3, 2009, at 1:46 PM, Shaoting Cai wrote: > > Hello, >> >> In the latest ANTLRv3.g ( >> http://fisheye2.atlass

[il-antlr-interest: 25003] Re: [antlr-interest] Question about the antlrv3.g

2009-08-03 Thread Terence Parr
hi Shaoting, which alternatives? remember | means alternative not newline. T On Aug 3, 2009, at 1:46 PM, Shaoting Cai wrote: > Hello, > > In the latest ANTLRv3.g > (http://fisheye2.atlassian.com/browse/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g?r=5943#l185 > > ) > ... > 184

[il-antlr-interest: 25002] [antlr-interest] How to extend the CommonTree without getting a classcastexcpetion in the generated code?

2009-08-03 Thread Marwan Ajraoui
Hi there; I did define a customized node, extending a commonTree, defined an adaptor extending a CommonTreeAdaptor, for my semantic analysis. Nevertheless, I'm getting a classCastException, when the parser find the first sintax error. The reason is that it can not cast CommonErrorNode to my cus

[il-antlr-interest: 25001] [antlr-interest] Question about the antlrv3.g

2009-08-03 Thread Shaoting Cai
Hello, In the latest ANTLRv3.g ( http://fisheye2.atlassian.com/browse/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g?r=5943#l185 ) ... 184ruleScopeSpec 185 : 'scope' ACTION -> ^('scope' ACTION) 186 | 'scope' id (',' id)* ';' -> ^('scope' id+)

[il-antlr-interest: 24998] [antlr-interest] Reload an AST from serialized form.

2009-08-03 Thread Tommy Nordgren
I have written the following small antlr grammar, to unserialize an AST from the output generated by the toStringTree() method. I'm sending it to the list, since I think it would be useful for many antlr users. --~--~-~--~~~---~--~~ You received this message bec

[il-antlr-interest: 24997] Re: [antlr-interest] [antlr3c ] Posible bug i C runtime generated code (ANTLR v3.1.3 and lib antlr3c 3.1.3)

2009-08-03 Thread Jim Idle
Adamic Tomislav wrote: > Hi > > Using two grammars below, ANTLR generates code that is not compilable > with either C or C++ compiler. Specifically, generated file > "ExampleGrammarEval.c" contains expression "MyStruct value = NULL;" > Please see many prior answers to this one. You must use poi

[il-antlr-interest: 24996] Re: [antlr-interest] [antlr3c] Need help working with ANTLR3_STRING...

2009-08-03 Thread Jim Idle
Adamic Tomislav wrote: > Hi > > I'm a bit puzzled with ANTLR API for ANTLR3_STRING... I need few > operations on strings and I could do it either by converting > ANTLR3_STRING into std::string (or std::wstring) or do it directly. > Well, I can't figure out either. So, let's say I want to create a

[il-antlr-interest: 24993] Re: [antlr-interest] [antlr3c] Posible bug i C runtime generated code (ANTLR v3.1.3 and libantlr3c 3.1.3)

2009-08-03 Thread Gavin Lambert
At 20:38 3/08/2009, Adamic Tomislav wrote: >Using two grammars below, ANTLR generates code that is not >compilable with either C or C++ compiler. Specifically, >generated file "ExampleGrammarEval.c" contains expression >"MyStruct value = NULL;" which is not valid C/C++ (because >value is not

[il-antlr-interest: 24992] Re: [antlr-interest] How to debug grammars on Vista (was: How to debug tree grammar??)

2009-08-03 Thread sunao furukawa
Hello! Everybody. some days ago,I got a reply from this mailinglist(David-Sarah Hopwood). ANTLRWorks generated(debug menu->debug) __Test__.java, debugging(debug menu->debug remote) T1.g is successful. But,TestE.java doesn't get a port(DEBUGGER_PORT 48000), so debug remote(debug menu->debug remote)

[il-antlr-interest: 24991] [antlr-interest] Extending a CommonTree

2009-08-03 Thread Marwan Ajraoui
Hi there; I did define a customized node, extending a commonTree, defined an adaptor extending a CommonTreeAdaptor, for my semantic analysis. Nevertheless, I'm getting a classCastException, when the parser find the first sintax error. The reason is that it can not cast CommonErrorNode to my cus

[il-antlr-interest: 24990] [antlr-interest] [antlr3c] Posible bug i C runtime generated code (ANTLR v3.1.3 and libantlr3c 3.1.3)

2009-08-03 Thread Adamic Tomislav
Hi Using two grammars below, ANTLR generates code that is not compilable with either C or C++ compiler. Specifically, generated file "ExampleGrammarEval.c" contains expression "MyStruct value = NULL;" which is not valid C/C++ (because value is not pointer) so the code doesn't compile. There is a

[il-antlr-interest: 24989] Re: [antlr-interest] [antlr3c] Need help working with ANTLR3_STRING...

2009-08-03 Thread Adamic Tomislav
Hi I'm a bit puzzled with ANTLR API for ANTLR3_STRING... I need few operations on strings and I could do it either by converting ANTLR3_STRING into std::string (or std::wstring) or do it directly. Well, I can't figure out either. So, let's say I want to create a copy of some already existing ANTL

[il-antlr-interest: 24988] Re: [antlr-interest] use of tree matching rules in tree grammar

2009-08-03 Thread Marwan Ajraoui
Divide and conquer, one thing is the fucionality of a syntax and recognization rules and other diferent is the semantic. Cheers, Marouane 2009/8/3 Jeroen van Schagen : > Hello, > > Currently I'm working on my first tree grammar after reading the definitive > ANTLR reference. Personally I love

[il-antlr-interest: 24987] [antlr-interest] [antlr3c] Need help working with ANTLR3_STRING...

2009-08-03 Thread Adamic Tomislav
Hi I'm a bit puzzled with ANTLR API for ANTLR3_STRING... I need few operations on strings and I could do it either by converting ANTLR3_STRING into std::string (or std::wstring) or do it directly. Well, I can't figure out either. So, let's say I want to create a copy of some already existing ANTL

[il-antlr-interest: 24986] [antlr-interest] How to extend the CommonTree without getting a classcastexcpetion in the generated code?

2009-08-03 Thread Marwan Ajraoui
Hi there; I did define a customized node, extending a commonTree, defined an adaptor extending a CommonTreeAdaptor, for my semantic analysis. Nevertheless, I'm getting a classCastException, when the parser find the first sintax error. The reason is that it can not cast CommonErrorNode to my cus

[il-antlr-interest: 24985] [antlr-interest] use of tree matching rules in tree grammar

2009-08-03 Thread Jeroen van Schagen
Hello, Currently I'm working on my first tree grammar after reading the definitive ANTLR reference. Personally I love the concept of tree grammars, but there are some things that seem a bit unlogical to me. Why do you have to specify "tree matching rules" after having specified recognition rules a