https://forge.codesys.com/download/tol,c2iec,code.git/example.html
the web version page does not exist
support direct declarator 1
added newline before END_FUNCTION, as otherwise it was appended to another statement sometimes
add END_FUNCTION markers
- corrections, to get FUNCTION / END_FUNCTION symetrical
improved diferenciation between function declarations and definitions
corrected handling of unary operators. Before, all unary operators were treated as pointer dereferenciation ;)
updated unary operators and added a few more tests from my personal queue
Nice idea! Actually I already thought of inventing a runtime library (emscripting is doing it similar). Then I could pass the variable by reference, to increment it, and return the old value as a result. But would this work with an Any-Type? Because in the place where I get the operator I don't know the datatype. Not sure, yet. BR, Ingo
if i is a DINT you can use __XADD(ADR(i) , 1) for i++
if i is a DINT( __XWORD??) you can use __XADD(ADR(i) , 1) for i++
Unary operators are not working
IF statement is missing a THEN
invalid syntax in the conversion of for-loops
Home
Merge branch 'master' of https://forge.codesys.com/git/tol,c2iec,code
corrected name of docker image
added wasm artifact
added mkdir for artifacts
corrected image name
added build target to build an html and a WASM file.
added example html file
Merge branch 'master' of https://forge.codesys.com/git/tol,c2iec,code
added test rule for easy preprocessing of legacy c code
added fake CI file, which just copies the existing artifacts
corrected types of variables in parameter list
implemented do/while loop
implemented return statement
fixed array acess
cleaned function definitions and their parameters
corrected order of functions and parameters
added new tests (some curreny failing)
fixed symbol handling bug
Merge branch 'master' of https://forge.codesys.com/git/tol,c2iec,code
corrected declaration of functions
fixed type modofier mapping for types in structures
Home
Home
Home
Home
implemented first unit test
support for i++, not only ++i
slight improvement of the type modifiers
implemented basics to use multiple fifos for
- support typedefs
first proof-of-concept for c to iec transpiler
consume left overs from preprocessor
basic support for simple structs
removed log files from version control
- renamed the tool to c2iec
finalized support for switch / case
support nested structs and unions
support for loops
added debug parameter to make file
support unnamed structs or unions
improved unit test