Path: news.daimi.aau.dk!jlk From: jlk@daimi.aau.dk (J|rgen Lindskov Knudsen) Newsgroups: comp.lang.beta Subject: Re: How to immediately compile/load patterns Date: 6 Mar 1996 09:01:40 GMT Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 59 Message-ID: <4hjk9k$s7g@gjallar.daimi.aau.dk> References: <4hf6pjINNbul@hood.sps.mot.com> Reply-To: jlknudsen@daimi.aau.dk (Jorgen Lindskov Knudsen) NNTP-Posting-Host: lithium.daimi.aau.dk In <4hf6pjINNbul@hood.sps.mot.com> Thus spake moss@risc.sps.mot.com (Matthew Moss): >I am experimenting with an environment where I need to compile a pattern >located in some text file and immediately be able to access that pattern >in the running program. Something like this: > CodeToPattern: > (# > (* > * T: filename of text file of a BETA pattern > * P: pattern of compiled text in file T > *) > > T: ^Text; P: ##Object; > enter T > do > ... > exit P## > #); >which would be used like: > filename: @Text; > pattern: ##Object; > ... > filename[]->CodeToPattern->pattern##; > ... >My first guess would be to read the COFF information out of the .o file >produced from the compile. But since I plan on adding the pattern to >a persistent store, maybe there is an easier way via a temporary PS. >has anyone done this before? Thanx... In the current implementation, this is not possible. A lot of underlying architectorial issues pop up here, making this difficult. Issues like type checking, dynamic link/load, etc. However, we are in fact looking into these issues in some research projects, and hopefully, we will be able to offer this kind of dynamic facilities sometime in the future (no promises :-) Repards, Jorgen Lindskov Knudsen, Mjolner Informatics Science Park Aarhus, Gustaw Vieds Vej 10, DK-8000 Aarhus C, DENMARK E-mail: jlknudsen@mjolner.dk, Phone: +45 86 20 20 00, Fax: +45 86 20 12 22 ************ BETA information Sources ************************ * WWW: http://www.mjolner.dk * * http://www.daimi.aau.dk/~beta/info * * News: comp.lang.beta * * FAQ: http://www.daimi.aau.dk/~beta/FAQ * * E-mail: info@mjolner.dk * * Address: Mjolner Informatics, Science Park Aarhus, * * Gustav Wieds Vej 10, DK-8000, Aarhus C, DENMARK * * Tel.: +45 86 20 20 00 * * Fax.: +45 86 20 12 22 * **************************************************************