mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-09 07:10:05 +03:00
Initial support for compiling .jaf (System 4 language) files. So far this is limited to adding struct definitions and declaring new globals. The actual bytecode compilation is not yet implemented. This Bison grammar is based on a C grammar and should cover 95% of the System 4 language syntax already, though many AST nodes are not yet implemented.
24 lines
654 B
Meson
24 lines
654 B
Meson
# sources for ainedit
|
|
ainedit = ['../../cJSON.c',
|
|
'../conv.c',
|
|
'ainedit.c',
|
|
'asm.c',
|
|
'jaf_ast.c',
|
|
'jaf_compile.c',
|
|
'jaf_eval.c',
|
|
'jaf_types.c',
|
|
'json.c',
|
|
'repack.c',
|
|
'text.c',
|
|
'transcode.c',
|
|
]
|
|
|
|
ainedit += flexgen.process('asm_lexer.l', 'text_lexer.l', 'jaf_lexer.l')
|
|
ainedit += bisongen.process('asm_parser.y', 'text_parser.y', 'jaf_parser.y')
|
|
|
|
executable('ainedit', ainedit,
|
|
dependencies : tool_deps,
|
|
c_args : ['-Wno-unused-parameter'],
|
|
include_directories : incdir,
|
|
link_with : libsys4)
|