[antlr-interest] Using ANTLR in Visual C# 2010 Express?

Sam Harwell sharwell at pixelminegames.com
Thu Aug 11 07:00:37 PDT 2011


The Visual Studio Express Editions do not support any extensions other than
simple code templates.

You *should* be able to use the ANTLR extension with the free Visual Studio
2010 Shell (Integrated Mode), but I haven't tried this. Here are links to
the installer and the SP1 update.

Visual Studio 2010 Shell (Integrated Mode):
http://www.microsoft.com/download/en/details.aspx?id=115

Visual Studio 2010 SP1 Update:
http://www.microsoft.com/download/en/details.aspx?id=23691

Sam

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of leodido
Sent: Thursday, August 11, 2011 2:41 AM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Using ANTLR in Visual C# 2010 Express?

Hi all,

I'm wondering if it is possible to use ANTLR with the free version Visual C#
2010 Express?
I'm really confused about now because I found two different "guides":

http://www.antlr.org/wiki/pages/viewpage.action?pageId=557075# and
http://www.tunnelvisionlabs.com/downloads/antlr/ANTLRCSharpDocumentation-900
4.xps

I tried following both and none of them works. 

I have an issue while following the ANTLRCSharpDocumentation-9004.xps guide
because apparently you can't install all types of extension in the version
of Visual Studio I'm using. It says This extension is not installable on any
currently installed products. Also I can't seem to find the line in my .sln
file that needs to be modified.

I haven't even done anything in my code and it won't compile giving me
errors. (ie. The type or namespace name 'GrammarRuleAttribute' could not be
found (are you missing a using directive or an assembly reference?) OR The
type or namespace name 'String' could not be found (are you missing a using
directive or an assembly reference?))

I generated my cs files using antlrworks-1.4.3.jar and target CSharp2 and
CSharp3 (Which target should I use?) and using the C Grammar file available
on the ANTLR page (just added the line language = 'CSharp2'; and
output=AST;)

Could a generous soul come to my rescue? I'd also be willing to write a
small document to clearly describe how to use ANTLR with C# if I ever
succeed into doing so :p

Thanks in advance.



--
View this message in context:
http://antlr.1301665.n2.nabble.com/Using-ANTLR-in-Visual-C-2010-Express-tp66
75388p6675388.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/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list