REmove unneeded type and update the README.md file

This commit is contained in:
Samuel D. Crow 2022-08-01 21:48:40 -05:00
parent 820fb864bd
commit ede1b24458
3 changed files with 23 additions and 3 deletions

View File

@ -2,3 +2,25 @@
A C++ export engine for the Yab interpreted language.
## Download Source Instructions
`git clone --recurse-submodules --depth 1 https://github.com/SamuraiCrow/Yab2Cpp.git`
If you forget to recurse-submodules or if the submodule code gets stale, type the following after it is done downloading:
`git submodule update --init --recursive`
## Compiling the Test Codes
Type the following in the Yab2Cpp directory and substitute the actual number of threads your CPU can run after the -j:
`make -j8 debug` or just `make -j8` for a release build.
Once it's done building, you can run the test code by typing:
`./tester` or `./tester -G` if you want it to generate all the build logs too.
To compile the executable, type `cd runtime` then `make -j8` and finally `./main` to try it out.
---
## Note:
The current version only supports test code for the code generator. Progress is ongoing.

View File

@ -112,7 +112,6 @@ enum CODES:unsigned int
T_STRINGFUNC,
T_FLOATFUNC,
T_INTFUNC,
T_VOIDFUNC,
T_UNKNOWNFUNC
};

View File

@ -192,8 +192,7 @@ void fn::close()
{
/* check if no returns and no return type */
enum CODES t=this->getType();
if (this->kind==T_UNKNOWN&&
(t==T_UNKNOWNFUNC||t==T_VOIDFUNC))
if (this->kind==T_UNKNOWN && t==T_UNKNOWNFUNC)
{
/* generate a typeless return */
this->generateReturn();