gencon

Generate Forth constant libraries via C



all:: gencon-sf gencon-vfx

clean::
	rm -fv gencon-sf gencon-vfx

#gencon-gforth: gencon.fs
#	echo '#! /usr/bin/env gforth' > $@
#	cat $< >> $@
#	echo '1 arg nip 0= [if] .( usage: gencon <file>) cr bye [then]' >> $@
#	echo '1 arg included' >> $@
#	echo 'generate bye' >> $@
#	chmod +x $@

gencon-sf: gencon.fs
	sf include gencon.fs ':noname 1 argv dup if included generate else ." usage: gencon <file>" then 0 sys_exit ;' "'MAIN" ! program $@ bye

gencon-vfx: gencon.fs
	vfxlin 'synonym parse-word parse-name' 'synonym string, $$,' include gencon.fs ':noname 1 argv[ dup if zcount -verboseinclude included generate else ." usage: gencon <file>" then bye ;' is EntryPoint save $@ bye

by demonview

avatar of demonview

Versions

0.1.0

Download current as zip

Tags

None

Dependencies

None

Dependents

None