Is anyone interested in Phix to C (I am not really that keen, but will help)
- Posted by petelomax Sep 01, 2021
- 1168 views
It is probably fairly straightforward to enhance the p2js program to emit C.
It would of course take a few months, and need someone else to lead it.
The basic process would be:
for day=start to whenever do take_some_simple_example() -- `puts(1,"Hello C")` might be a good start run_p2js() if day=start then manually_edit_test_dot_htm_to_test_dot_c() -- until it works else manually_edit_the_test_dot_c_p2js_made() -- "" end if post_that_test_dot_c_and_the_original_here() modify_p2js_as_needed() -- this is where I can help end for
Obviuously you replace the html with whatever #include-type-stuff is needed,
the replacement p2c.c instead of p2js.js being entirely someone else's burden,
and aim for small mechanical changes to the JavaScript that was emitted.