Closed daxida closed 5 months ago
We need types for writing WriteJoin commands in C.
WriteJoin
I quickly hacked something in parser.rs and tested it. Picture below.
parser.rs
The code itself for adding the types is not ideal and I would like to have your opinion before proceeding.
Also:
var
term
write_join.c.jinja
name
ident
var_type
Edit: For the moment it can be tested with this handmade clash (but ideally this should be standard and accessible through gen --debug or sth):
gen --debug
cargo run fetch 90435e82d1d5e3fe5f9d3dd813770f0d5a7d2 cargo run next 90435e82d1d5e3fe5f9d3dd813770f0d5a7d2 cargo run gen c
We need types for writing
WriteJoin
commands in C.I quickly hacked something in
parser.rs
and tested it. Picture below.The code itself for adding the types is not ideal and I would like to have your opinion before proceeding.
Also:
var
should beterm
inwrite_join.c.jinja
name
toident
in JoinTerm for consistencyvar_type
to JoinTerm (now is_variable became useless since the info is already in the Option var_type, but may be worth keeping for readability)Edit: For the moment it can be tested with this handmade clash (but ideally this should be standard and accessible through
gen --debug
or sth):