Added support for the Basic compiler.
This commit is contained in:
parent
1caa63775f
commit
d29b1ef7d0
16
lang/basic/pmfile
Normal file
16
lang/basic/pmfile
Normal file
|
@ -0,0 +1,16 @@
|
|||
-- $Source$
|
||||
-- $State$
|
||||
|
||||
local d = ROOTDIR.."lang/basic/"
|
||||
|
||||
include (d.."src/pmfile")
|
||||
|
||||
lang_basic = group {
|
||||
lang_basic_compiler
|
||||
}
|
||||
|
||||
-- Revision history
|
||||
-- $Log$
|
||||
-- Revision 1.1 2006-07-26 23:08:09 dtrg
|
||||
-- Added support for the Basic compiler.
|
||||
--
|
64
lang/basic/src/pmfile
Normal file
64
lang/basic/src/pmfile
Normal file
|
@ -0,0 +1,64 @@
|
|||
-- $Source$
|
||||
-- $State$
|
||||
|
||||
local d = ROOTDIR.."lang/basic/src/"
|
||||
|
||||
local lpars = LLgen {
|
||||
file (d.."basic.g"),
|
||||
}
|
||||
|
||||
local tokentab_h = simple {
|
||||
outputs = {"%U%/token.h"},
|
||||
command = {
|
||||
"cd %out[1]:dirname% && %in[1]% %in[2]%"
|
||||
},
|
||||
|
||||
file (d.."maketokentab"),
|
||||
lpars
|
||||
}
|
||||
|
||||
local cfile_with_headers = cfile {
|
||||
class = "cfile_with_headers",
|
||||
dynamicheaders = {
|
||||
file (d),
|
||||
lpars,
|
||||
tokentab_h
|
||||
}
|
||||
}
|
||||
|
||||
lang_basic_compiler = cprogram {
|
||||
cfile_with_headers (d.."bem.c"),
|
||||
cfile_with_headers (d.."symbols.c"),
|
||||
cfile_with_headers (d.."initialize.c"),
|
||||
cfile_with_headers (d.."compile.c"),
|
||||
cfile_with_headers (d.."parsepar.c"),
|
||||
cfile_with_headers (d.."gencode.c"),
|
||||
cfile_with_headers (d.."util.c"),
|
||||
cfile_with_headers (d.."graph.c"),
|
||||
cfile_with_headers (d.."eval.c"),
|
||||
cfile_with_headers (d.."func.c"),
|
||||
|
||||
foreach {
|
||||
rule = cfile_with_headers,
|
||||
ith { lpars, from=2 }
|
||||
},
|
||||
|
||||
lib_em_mes,
|
||||
lib_emk,
|
||||
lib_em_data,
|
||||
lib_alloc,
|
||||
lib_print,
|
||||
lib_string,
|
||||
lib_system,
|
||||
|
||||
outputs = {"%U%/em_bem"},
|
||||
install = {
|
||||
pm.install("%BINDIR%%PLATDEP%/em_bem"),
|
||||
}
|
||||
}
|
||||
|
||||
-- Revision history
|
||||
-- $Log$
|
||||
-- Revision 1.1 2006-07-26 23:08:09 dtrg
|
||||
-- Added support for the Basic compiler.
|
||||
--
|
10
pmfile
10
pmfile
|
@ -51,6 +51,7 @@ include "lang/cem/cemcom.ansi/pmfile"
|
|||
include "lang/pc/pmfile"
|
||||
include "lang/m2/pmfile"
|
||||
include "lang/occam/pmfile"
|
||||
include "lang/basic/pmfile"
|
||||
|
||||
include "mach/proto/pmfile"
|
||||
include "mach/6500/pmfile"
|
||||
|
@ -113,6 +114,7 @@ default = group {
|
|||
lang_pc,
|
||||
lang_m2,
|
||||
lang_occam,
|
||||
lang_basic,
|
||||
|
||||
mach_6500,
|
||||
mach_6800,
|
||||
|
@ -165,7 +167,10 @@ configure = simple {
|
|||
|
||||
-- Revision history
|
||||
-- $Log$
|
||||
-- Revision 1.10 2006-07-26 18:23:32 dtrg
|
||||
-- Revision 1.11 2006-07-26 23:08:09 dtrg
|
||||
-- Added support for the Basic compiler.
|
||||
--
|
||||
-- Revision 1.10 2006/07/26 18:23:32 dtrg
|
||||
-- Added support for the Occam compiler.
|
||||
--
|
||||
-- Revision 1.9 2006/07/26 17:12:19 dtrg
|
||||
|
@ -190,5 +195,4 @@ configure = simple {
|
|||
-- Added support for the ego global optimisation suite.
|
||||
--
|
||||
-- Revision 1.2 2006/07/20 23:24:42 dtrg
|
||||
-- Fixed revision history.
|
||||
--
|
||||
-- Fixed revision history.
|
Loading…
Reference in a new issue