[antlr-interest] [C# target]about efficiency of the code

李志鹏 lizhipeng at gmail.com
Mon Nov 14 01:14:12 PST 2011


thanks for your information!
thank you

在 2011-11-14 下午4:30,"Mari Matinlassi" <mmatinlassi at icinetic.com>编写:

Hi,

Maybe you can take a look how a walker is done in this example (download the
code and look at the methods in MessageContractAssembler.cs):
http://abdullin.com/journal/2010/10/12/teach-visual-studio-your-own-language
-easy.html

In addition, it is a good idea to simplify your AST before walking through
it. I have used rewrite rules. You might find this tutorial useful:
http://floris.briolas.nl/floris/2008/08/antlr-ast-and-rewriting-rules/

-mari

-----Original Message-----
From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.
org] On Behalf Of ???
Sent: Sunday, November 13, 2011 3:37 PM
To: antlr-interest at antlr.org
Subject: [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 ...
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address


More information about the antlr-interest mailing list