View previous topic :: View next topic |
Author |
Message |
mpah
Joined: 18 Jul 2005 Posts: 29 Location: UK
|
Posted: Mon Sep 05, 2005 2:47 am Post subject: building the language machine under win$ |
|
|
Manfred Nowak has been experimenting with the d2d translator, and he tells me that he was able to build and use the language machine using DMD and Derek Parnell's 'build' under minegrew$ (think about it), using the following steps:
Code: |
//:::preparing language machine
//untar the archive
//change to src
build lmn\lmn2d lmnBootstrap\lmddmain -oflmn2d
//lmn2d ready to use
//:::using language machine called lmn2d
lmn2d examples\calc.lmn > calc.d
build calc examples\calcmaind
//calc ready to use
lmn2d d2d\d2xfe.lmn d2d\d2dbe.lmn > d2d.d
build d2d lmnBootstrap\lmddmain
//d2d ready to use
|
Thanks Manfred. Of course, I also use Makefiles as recipes for building and applying lm rulesets, and I don't think the build tool will help there - but I haven't yet had a serious look at it.
Peri _________________ The Language Machine - a toolkit for language and grammar |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Mon Sep 05, 2005 3:03 am Post subject: Re: building the language machine under win$ |
|
|
mpah wrote: | Manfred Nowak has been experimenting with the d2d translator, and he tells me that he was able to build and use the language machine using DMD and Derek Parnell's 'build' under minegrew$ (think about it), using the following steps:
Code: |
//:::preparing language machine
//untar the archive
//change to src
build lmn\lmn2d lmnBootstrap\lmddmain -oflmn2d
//lmn2d ready to use
//:::using language machine called lmn2d
lmn2d examples\calc.lmn > calc.d
build calc examples\calcmaind
//calc ready to use
lmn2d d2d\d2xfe.lmn d2d\d2dbe.lmn > d2d.d
build d2d lmnBootstrap\lmddmain
//d2d ready to use
|
Thanks Manfred. Of course, I also use Makefiles as recipes for building and applying lm rulesets, and I don't think the build tool will help there - but I haven't yet had a serious look at it.
Peri |
You should give it a go as Build really can replace all makefiles for building D apps. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
mpah
Joined: 18 Jul 2005 Posts: 29 Location: UK
|
Posted: Mon Sep 05, 2005 3:26 am Post subject: |
|
|
I agree that build looks very useful - but what I meant was that I use Makefiles for recipes that apply the language machine and applications of the language machine to texts in the lmn metalanguage and in languages/notations that are described by these. Sometimes these may produce D source to be compiled, and I can see that build would be useful for those cases. But there are any number of other ways of using it that don't involve compiling any D source at all.
As an example, here are the Makefile rules that I use to generate .html pages from .lmn (metalanguage source) and .wiki (domumentation in wiki markup format):
Code: |
WIKI2HTML = ./makesite.lm
# rule to create .html from .lmn - metalanguage source with mediawiki annotation
?.html : ?.lmn
$(WIKI2HTML) $+ -o $*.html
# rule to create .html from .wiki - mediawiki text files
?.html : ?.wiki
$(WIKI2HTML) $+ -o $*.html
|
The make system can be a bit of a pig - but it's a pig that can be taught to sing pretty tunes, and one get used to its idiosyncrasies.
But I'll go and take another look at build. _________________ The Language Machine - a toolkit for language and grammar |
|
Back to top |
|
|
|