2023-01-04 22:32:55 +00:00
|
|
|
xc_exe = executable('xc',
|
|
|
|
sources : [
|
|
|
|
'main.cc',
|
|
|
|
'emit.cc',
|
2023-01-05 20:12:15 +00:00
|
|
|
'error.cc',
|
2023-01-06 02:56:33 +00:00
|
|
|
'typecheck.cc',
|
2023-01-04 22:32:55 +00:00
|
|
|
antlr4.process('xlang.g4'),
|
|
|
|
],
|
|
|
|
dependencies : [
|
|
|
|
antlr4_runtime_dep,
|
|
|
|
],
|
|
|
|
install : true)
|
|
|
|
xc = generator(xc_exe,
|
|
|
|
arguments : ['-o', '@OUTPUT@', '@INPUT@'],
|
|
|
|
output : '@BASENAME@.ssa')
|