[Fwd: Re: [Mono-list] couple questions on mcs and parsing]
Ravi Pratap M
13 Jun 2002 14:34:07 -0500
Forgot to send this to the list.
From: Ravi Pratap M <email@example.com>
To: Dennis Lu <firstname.lastname@example.org>
Subject: Re: [Mono-list] couple questions on mcs and parsing
Date: 13 Jun 2002 12:47:09 -0500
On Thu, 2002-06-13 at 11:36, Dennis Lu wrote:
> I am building what is in essence a simple C# interpreter. What I'm most
Hmm, have you taken a look at mint - our interpreter ? Perhaps you
would like to use that :-)
> - how can i build mcs in VS? It says it can't find cs-parser.cs
cs-parser.cs is generated from cs-parser.jay by Jay. The problem is
that currently mcs does not lend itself to being used in VS since we
haven't bothered setting up the project files since we use a makefile.
You could however submit patches if you get it working.
> - how could I get a reference to the generated AST by the parser? looking at
> the parse method in the driver, the CSharpParser just gets thrown away.
Yes the parser gets thrown away but the AST is stored in the Tree
> - would it be possible to add visitor hooks into the AST generated by the
Yes, certainly it should be possible :-)
> - Is it possible to just extract the files necessary for the parser?
Hope that helps,