[Mono-dev] Using Ilasm parser on other applications

2006-05-07 Thread Alejandro Serrano
Is there any way I could use the parser that Ilasm
uses to obtain the set of classes, methods,
properties, etc... from an IL source file? I don't
mind making some rework, although I think this parser
could address my needs if I got some way to use it
just not for plain code generation.

Thanks in advance,
Serras



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Using Ilasm parser on other applications

2006-05-07 Thread Andreas Nahr

Why not just use Cecil?
That would work for any IL, not just (but also) ILAsm source...

- Original Message - 
From: Alejandro Serrano [EMAIL PROTECTED]

To: mono-devel-list@lists.ximian.com
Sent: Sunday, May 07, 2006 5:13 PM
Subject: [Mono-dev] Using Ilasm parser on other applications



Is there any way I could use the parser that Ilasm
uses to obtain the set of classes, methods,
properties, etc... from an IL source file? I don't
mind making some rework, although I think this parser
could address my needs if I got some way to use it
just not for plain code generation.

Thanks in advance,
Serras



__
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Using Ilasm parser on other applications

2006-05-07 Thread Alejandro Serrano
I mean getting the IL source file and parsing it to get the methods, 
classes, defined in the file..., something like an IDE does with source 
codes. Does Cecil implement this functionality? I thought it just worked 
for already compiled assemblies. Which classes should I use for the task?


Serras

Andreas Nahr escribió:

Why not just use Cecil?
That would work for any IL, not just (but also) ILAsm source...

- Original Message - From: Alejandro Serrano [EMAIL PROTECTED]
To: mono-devel-list@lists.ximian.com
Sent: Sunday, May 07, 2006 5:13 PM
Subject: [Mono-dev] Using Ilasm parser on other applications



Is there any way I could use the parser that Ilasm
uses to obtain the set of classes, methods,
properties, etc... from an IL source file? I don't
mind making some rework, although I think this parser
could address my needs if I got some way to use it
just not for plain code generation.

Thanks in advance,
Serras



__
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list








__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Using Ilasm parser on other applications

2006-05-07 Thread Jb Evain

Hola,

On May 7, 2006, at 10:52 PM, Alejandro Serrano wrote:
I mean getting the IL source file and parsing it to get the  
methods, classes, defined in the file..., something like an IDE  
does with source codes. Does Cecil implement this functionality? I  
thought it just worked for already compiled assemblies. Which  
classes should I use for the task?


Using Cecil, you can build assemblies from scratch, by creating an  
object graph, and serializing it back. But it does not parse CIL text  
files. If you have to, you'll need to use or extend the ilasm parser.  
Have a look at ilasm's Driver.cs to see how you can embed it.


Jb


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list