[il-antlr-interest: 34869] [antlr-interest] [C# target]about efficiency of the code
Hello all I write a very small script language in C#. I have to use box and unbox again and again in C# code to walk through the AST tree, and a lot of method use reflection, so i worry about the code efficiency. anyone have experience walk through tree in C#? how to do more effectively? can give me some hints? 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
[il-antlr-interest: 34518] [antlr-interest] how to deal with this function?
hello all: In my rule, I have a function named Between. It has more than one parameters, the first is compare value, the next two define a range, and next two next range, and so on. if only one parameter left, it means the range has no upper limit. such as: Between(a, 1, 20, 25, 30), it means (a1 and a20) or (a 25 and a30) Between(a, 1, 20, 25) it means (a1 and a20) or (a 25) I wonder how to describe it in rules, and how to describe it in Tree grammar, and how to build an AST tree, and how to deal it in tree walker. thanks for your help. 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
[il-antlr-interest: 34512] Re: [antlr-interest] Something Wrong in Antlr3CSharpReleases 3.4?
same as me VS2010 ultimate with sp1 target invocation exception, but antlr3CSharp 3.3 no problem. I use 3.3 now. On Saturday, October 22, 2011, Darek wrote: Darek dariusz.brzezinski@... writes: EDIT: On my home machine with Visual Studio 2010 Ultimate I'm having no problems. At work on a machine with Visual SStudio Ultimate 2010 SP 1 I'm getting the target invocation exception. I've mingling with the *.targets file but with no results. Hope somebody can help me or suggest where to look for bugs. 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
[il-antlr-interest: 34513] Re: [antlr-interest] Something Wrong in Antlr3CSharpReleases 3.4?
yes, I copy en.stg to zh.stg(my language is simplified Chinese), and build ok now but I find things change a lot from 3.3 to 3.4. Such as **Parser.***_return changes to AstParserRuleReturnScopeCommonTree,CommonToken this might more coincidental with C# language. Thanks Dariusz for your information. On Saturday, October 22, 2011, Dariusz Brzeziński wrote: I think I found what's wrong: The MSBuild task takes locale into account and tries to select an appropriate messages file. Since my locale are Polish, the task was looking for the file pl.stg in Antlr\Tool\Templates\messages\languages. There was an error when it didn't find it. Quick solution: copy and rename en.stg to your locale.stg. In my case pl.stg. Hope this helps. Cheers, Darek W dniu 10/22/2011 1:52 PM, 李志鹏 pisze: same as me VS2010 ultimate with sp1 target invocation exception, but antlr3CSharp 3.3 no problem. I use 3.3 now. On Saturday, October 22, 2011, Darek wrote: Darek dariusz.brzezinski@... javascript:_e({}, 'cvml', 'dariusz.brzezinski@...'); writes: EDIT: On my home machine with Visual Studio 2010 Ultimate I'm having no problems. At work on a machine with Visual SStudio Ultimate 2010 SP 1 I'm getting the target invocation exception. I've mingling with the *.targets file but with no results. Hope somebody can help me or suggest where to look for bugs. 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
[il-antlr-interest: 34517] Re: [antlr-interest] Should I contribute working example code for CSharp3 target?
me too, I have trouble at begin for C# too. On Sunday, October 23, 2011, Terence Parr wrote: sure. send me a zip. Ter On Oct 22, 2011, at 9:14 AM, Voelkel, Andy wrote: Hi, Thanks to the generous help from this list, I seem to have got over the worst of the learning curve for the Antlr C# target. I've also started to notice the logic in how the C# target deviates from the Java target, so I don't think I'll have to pester the list with stupid questions quite so much going forward. The C# target part of the learning curve has been for me much more difficult than the Antr learning curve itself, mostly because there is a lot of broken or out of date example code for the C# target floating around and it is hard to know where to look for useful examples that do work properly. Anyhow, I've converted all the calculator examples from the first section of The Definitive Guide To Antlr to the CSharp3 target and they all seem to work. If there is interest and if I know how to do it, I would be happy to contribute them to the Antlr community. I'll probably continue to convert more examples as I work my way through the book. I have to laugh, because for all I know there are up to date examples for all of these and I just don't know where they are! I'd also be happy to contribute a few paragraphs on how the CSharp3 target grammar files and test harness differ from the Java target. These might be useful to newcomers such as myself since one generally loses the beginners perspective over time and thing become obvious that might not be obvious to beginners. - Andy CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain information that is confidential and/or legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, please DO NOT disclose the contents to another person, store or copy the information in any medium, or use any of the information contained in or attached to this transmission for any purpose. If you have received this transmission in error, please immediately notify the sender by reply email or at priv...@plantronics.com javascript:;, and destroy the original transmission and its attachments without reading or saving in any manner. For further information about Plantronics - the Company, its products, brands, partners, please visit our website www.plantronics.com. 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 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
[il-antlr-interest: 34455] Re: [antlr-interest] How viable is the Csharp3 target?
which version c# runtime do you use? 3.4 or 3.3? download from official website? i am newbie, want to build simple project could run an example, but two weeks passed, i failed… 在 2011-10-19 下午10:36,pragmaik cont...@maik-schmidt.de编写: Hi Andy! I am using ANTLR's C# target for a couple of weeks now to create a domain specific language that is a subset of the C programming language. My experience is similar to yours, but I can assure you that the C# target works and that it is actively maintained. It differs from the Java target in a few places, but it works. The biggest problem is finding documentation. I've both of Terence Parr's books on my desk and the folks on this mailing list are very friendly and competent. Cheers, Maik -- View this message in context: http://antlr.1301665.n2.nabble.com/How-viable-is-the-Csharp3-target-tp6908890p6908949.html Sent from the ANTLR mailing list archive at Nabble.com. List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailma... 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
[il-antlr-interest: 34423] Re: [antlr-interest] Something Wrong in Antlr3CSharpReleases 3.4?
thank sam but where can I find the latest document? and any notes about difference in 3.4 3.3? 在 2011-10-16 上午1:10,Sam Harwell sharw...@pixelminegames.com编写: Hello, The CSharp3.pdf document you are using is old. All the links on antlr.org should already be updated to point to the newer documentation on the Antlr3CSharpReleases page. I suggest going through the updated document to see if the problem gets resolved. Thanks, Sam -Original Message- From: antlr-interest-boun...@antlr.org [mailto:antlr-interest-bounces@antlr. org] On Behalf Of ??? Sent: Saturday, October 15, 2011 11:16 AM To: antlr-interest@antlr.org Subject: [antlr-interest] Something Wrong in Antlr3CSharpReleases 3.4? Hello All I'm a newbie in Antlr in C# I start my study from http://www.antlr.org/download/CSharp3... *-- Rebuild All started: Project: AntlrTest, Configuration: Debug x86 --* *F:\antlr\AntlrTest\Reference\Antlr\Antlr3.targets(123,5): error AC1000: Unknown build error: Exception has been thrown by the target of an invocation.* *== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==* * * Anyone Else come with the Same question? How to solve it? 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.