Updated README

This commit is contained in:
Abdelrahman Said 2023-05-13 02:39:00 +01:00
parent da984bc702
commit 617bbe2f14

View File

@ -1,6 +1,6 @@
# C Code Generation # C Code Generation
Basic attempt at code generation for C. Generates 2D, 3D and 4D vector structs for int, float and double primitive types, as well as functions to print the values of the dimensions of each struct. It also create two macros `VEC(TYPE, COUNT)` which can be used to declare a variable of any of the defined vector types and `PRINT_VEC(TYPE, COUNT)` which can be used to call the respective print function for each vector type. Basic attempt at code generation for C. Generates 2D, 3D and 4D vector structs for int, float and double primitive types, as well as functions to print the values of the dimensions of each struct. It also creates two macros `VEC(TYPE, COUNT)` which can be used to declare a variable of any of the defined vector types and `PRINT_VEC(TYPE, COUNT)` which can be used to call the respective print function for each vector type.
The `main.c` includes examples of using the macros. The `main.c` includes examples of using the macros.