Path: news.daimi.aau.dk!news.uni-c.dk!newsfeed.sunet.se!news01.sunet.se!sunic!mn6.swip.net!plug.news.pipex.net!pipex!weld.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.mathworks.com!newsfeed.internetmci.com!in1.uu.net!spstimes.sps.mot.com!newsdist.sps.mot.com!risc.sps.mot.com!risc.sps.mot.com!not-for-mail From: moss@risc.sps.mot.com (Matthew Moss) Newsgroups: comp.lang.beta Subject: How to immediately compile/load patterns Date: 4 Mar 1996 10:46:43 -0600 Organization: Motorola, Inc. -- Austin,TX Lines: 39 Message-ID: <4hf6pjINNbul@hood.sps.mot.com> NNTP-Posting-Host: hood.sps.mot.com 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... (Sorry if this is something too easy or too complex... I am fairly new to BETA and doing a bit of experimenting while still comprehending many of its features.) -- Matthew D Moss RISC Software, Motorola moss@risc.sps.mot.com http://www.mot.com/PowerPC/